Remove some useless comments
[phpmyadmin.git] / libraries / classes / Twig / I18nExtension.php
blobf22d6dd2359c2864cf3500cefbbc98343fbbe916
1 <?php
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;
10 use Twig\TwigFilter;
12 class I18nExtension extends TwigI18nExtension
14 /**
15 * Returns the token parser instances to add to the existing list.
17 * @return TokenParserInterface[]
19 public function getTokenParsers()
21 return [new TokenParserTrans()];
24 /**
25 * Returns a list of filters to add to the existing list.
27 * @return TwigFilter[]
29 public function getFilters()
31 return [
32 new TwigFilter('trans', '_gettext'),