diff --git a/Resources/config/pagerfanta.xml b/Resources/config/pagerfanta.xml index b0ca7bb..f1749de 100644 --- a/Resources/config/pagerfanta.xml +++ b/Resources/config/pagerfanta.xml @@ -45,6 +45,13 @@ + + + + + + + @@ -52,7 +59,6 @@ - diff --git a/Tests/View/TwitterBootstrap4TranslatedViewTest.php b/Tests/View/TwitterBootstrap4TranslatedViewTest.php new file mode 100644 index 0000000..9a7c834 --- /dev/null +++ b/Tests/View/TwitterBootstrap4TranslatedViewTest.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Wenming Tang + */ +namespace WhiteOctober\PagerfantaBundle\Tests\View; + +class TwitterBootstrap4TranslatedView extends TwitterBootstrapTranslatedViewTest +{ + protected function viewClass() + { + return 'Pagerfanta\View\TwitterBootstrap4View'; + } + protected function translatedViewClass() + { + return 'WhiteOctober\PagerfantaBundle\View\TwitterBootstrap4TranslatedView'; + } + protected function translatedViewName() + { + return 'twitter_bootstrap4_translated'; + } +} diff --git a/View/TwitterBootstrap4TranslatedView.php b/View/TwitterBootstrap4TranslatedView.php new file mode 100644 index 0000000..dec6b29 --- /dev/null +++ b/View/TwitterBootstrap4TranslatedView.php @@ -0,0 +1,30 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Wenming Tang + */ + +namespace WhiteOctober\PagerfantaBundle\View; + +/** + * TwitterBootstrap4TranslatedView + * + * This view renders the twitter bootstrap4 view with the text translated. + */ +class TwitterBootstrap4TranslatedView extends TwitterBootstrapTranslatedView +{ + /** + * {@inheritdoc} + */ + public function getName() + { + return 'twitter_bootstrap4_translated'; + } +}