TranslationExtension
class TranslationExtension extends Twig_Extension
Provides integration of the Translation component with Twig.
Methods
__construct(TranslatorInterface $translator, Twig_NodeVisitorInterface $translationNodeVisitor = null)
No description
getTranslator()
No description
getFilters()
{@inheritdoc}
array
getTokenParsers()
Returns the token parser instance to add to the existing list.
getNodeVisitors()
{@inheritdoc}
getTranslationNodeVisitor()
No description
trans($message, array $arguments = array(), $domain = null, $locale = null)
No description
transchoice($message, $count, array $arguments = array(), $domain = null, $locale = null)
No description
getName()
{@inheritdoc}
Details
at line line 31
__construct(TranslatorInterface $translator, Twig_NodeVisitorInterface $translationNodeVisitor = null)
at line line 41
getTranslator()
at line line 49
getFilters()
{@inheritdoc}
at line line 62
array
getTokenParsers()
Returns the token parser instance to add to the existing list.
at line line 81
getNodeVisitors()
{@inheritdoc}
at line line 86
getTranslationNodeVisitor()
at line line 91
trans($message, array $arguments = array(), $domain = null, $locale = null)
at line line 96
transchoice($message, $count, array $arguments = array(), $domain = null, $locale = null)
at line line 104
getName()
{@inheritdoc}