Answers for "where to add twig filter"

PHP
0

twig filter

{% set sizes = [34, 36, 38, 40, 42] %}

{{ sizes|filter(v => v > 38)|join(', ') }}
{# output 40, 42 #}
Posted by: Guest on October-13-2021
0

twig filter

{% set sizes = [34, 36, 38, 40, 42] %}

{{ sizes|filter(v => v > 38)|join(', ') }}
{# output 40, 42 #}
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language