class TranslationExtension extends AbstractExtension
Provides integration of the Translation component with Twig.
| __construct(TranslatorInterface $translator = null, NodeVisitorInterface $translationNodeVisitor = null) | ||
| getTranslator() | ||
| getFilters() {@inheritdoc} | ||
| AbstractTokenParser[] | getTokenParsers() Returns the token parser instance to add to the existing list. | |
| getNodeVisitors() {@inheritdoc} | ||
| getTranslationNodeVisitor() | ||
| trans($message, array $arguments = array(), $domain = null, $locale = null) | ||
| transchoice($message, $count, array $arguments = array(), $domain = null, $locale = null) | ||
| getName() {@inheritdoc} |
| TranslatorInterface | $translator | |
| NodeVisitorInterface | $translationNodeVisitor |
{@inheritdoc}
Returns the token parser instance to add to the existing list.
| AbstractTokenParser[] |
{@inheritdoc}
| $message | ||
| array | $arguments | |
| $domain | ||
| $locale |
| $message | ||
| $count | ||
| array | $arguments | |
| $domain | ||
| $locale |
{@inheritdoc}
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Twig/Extension/TranslationExtension.html