Search code examples
arraysdrupaltwigrender

How I may to render array of arrays in twig, Drupal 8?


I have the following {{dump () }} output of my template, which has 'rows' variable which has array of arrays:

Dump output

Question: How it's possible to render each array (ie feedback) in twig template?


Solution

  • Should be like this

    {% for row in rows %}
        {{ row.feedback }}
    {% endfor %}