Answers for "twig entity foreach"

3

twig foreach

{% for key, value in array %}
  {{ key }}: {{ value }}
{% endfor %}
Posted by: Guest on September-25-2020
2

foreach twig

{% for user in users %}
        <li>{{ user.username|e }}</li>
    {% endfor %}
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language