Filters

Modify variable values with Twig filters.

Filters enable you to modify the content of variables within your template.

If you'd like access to a TWIG filter that is not available below, please let us know.

Available Filters

Filter
Documentation

escape

length

raw

money

slice

number_format

date

nl2br

replace

split

upper

lower

Filter Documentation

money

The money filter transforms a variable into a monetary format.

{% set value = 1 %}

{{ value|money }} // returns 1.00

Last updated