M
M
magary42017-03-06 10:41:53
symfony
magary4, 2017-03-06 10:41:53

Is it possible to add default Twig filters?

Now everywhere in the templates
{{ 'forum.word.the'|trans|capitalize }}
, is it possible to set the application of these two filters for all lines output through {{ 'text' }}
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shagguboy, 2017-03-20
@shagguboy

twig.sensiolabs.org/doc/2.x/advanced.html#register...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question