twig classes array to string code example Example: twig classes array to string {{ [1, 2, 3]|join('|') }} {# outputs 1|2|3 #}