{% set title_attributes = create_attribute({'class': ['accordion-toggle']}) %} {% if group_title %}

{{ group_title }}

{% endif %}
{% for key, row in rows -%} {% set expanded = (behavior == 'first' and loop.first) or behavior == 'all' ? true : false %} {% set title_class = [expanded == false ? 'collapsed' : ''] %}

{{row.title}} {% if row.label %} {{ row.label }} {% endif %}

{{row.content}}
{%- endfor %}