Created
May 11, 2016 08:36
-
-
Save shadcn/4c79632956564f1d2ef321ad6aa83941 to your computer and use it in GitHub Desktop.
Drupal Element::children in Twig templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for key, child in element if key|first != '#' %} | |
<div>{{ child }}</div> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But consider, you can't use
{{ loop.last }}
here, because the last item can't be determend.