class TranslationExtension extends Twig_Extension
Provides integration of the Translation component with Twig.
Methods
__construct(TranslatorInterface $translator, Twig_NodeVisitorInterface $translationNodeVisitor = null) | ||
getTranslator() | ||
getFilters() {@inheritdoc} | ||
array | 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} |
Details
__construct(TranslatorInterface $translator, Twig_NodeVisitorInterface $translationNodeVisitor = null)
getTranslator()
getFilters()
{@inheritdoc}
array 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}
Please login to continue.