3 declare(strict_types
=1);
5 namespace PhpMyAdmin\Twig
;
7 use PhpMyAdmin\Twig\Extensions\I18nExtension
as TwigI18nExtension
;
8 use PhpMyAdmin\Twig\I18n\TokenParserTrans
;
9 use Twig\TokenParser\TokenParserInterface
;
12 class I18nExtension
extends TwigI18nExtension
15 * Returns the token parser instances to add to the existing list.
17 * @return TokenParserInterface[]
19 public function getTokenParsers()
21 return [new TokenParserTrans()];
25 * Returns a list of filters to add to the existing list.
27 * @return TwigFilter[]
29 public function getFilters()
32 new TwigFilter('trans', '_gettext'),