Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (9 sloc) 378 Bytes


Strips a the first level of drupal render array from the # prefixed keys. Mostly useful for iterating trough a field output and still being able to use the loop.index0, loop.first etc options in twig loops.

{% for id, item in content.field_link_list|striphashes %}
    {{ item }}
    {% if loop.last %}
        <hr> {% endif %}
{% endfor %}