TranslationExtension
class TranslationExtension extends AbstractExtension
Provides integration of the Translation component with Twig.
Traits
A trait to help implement TranslatorInterface and LocaleAwareInterface.
Methods
trans($message, array $arguments = array(), $domain = null, $locale = null, $count = null)
No description
__construct($translator = null, NodeVisitorInterface $translationNodeVisitor = null)
No description
getFilters()
{@inheritdoc}
AbstractTokenParser[]
getTokenParsers()
Returns the token parser instance to add to the existing list.
getNodeVisitors()
{@inheritdoc}
getTranslationNodeVisitor()
No description
transchoice($message, $count, array $arguments = array(), $domain = null, $locale = null)
deprecated
No description
getName()
{@inheritdoc}