vendor/babdev/pagerfanta-bundle/View/DefaultTranslatedView.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace BabDev\PagerfantaBundle\View;
  3. /**
  4.  * @deprecated to be removed in BabDevPagerfantaBundle 3.0. Use the Twig view class instead with the `default.html.twig` template.
  5.  */
  6. class DefaultTranslatedView extends TranslatedView
  7. {
  8.     protected function previousMessageOption()
  9.     {
  10.         return 'prev_message';
  11.     }
  12.     protected function nextMessageOption()
  13.     {
  14.         return 'next_message';
  15.     }
  16.     protected function buildPreviousMessage($text)
  17.     {
  18.         return sprintf('&#171; %s'$text);
  19.     }
  20.     protected function buildNextMessage($text)
  21.     {
  22.         return sprintf('%s &#187;'$text);
  23.     }
  24.     public function getName()
  25.     {
  26.         return 'default_translated';
  27.     }
  28. }