Answers for "twig merge"

0

twig merge

{% set values = [1, 2] %}

{% set values = values|merge(['apple', 'orange']) %}

{# values now contains [1, 2, 'apple', 'orange'] #}
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language