{% for configElement in configArray %} {% if configElement is instanceof('\\OutputDataConfigToolkitBundle\\ConfigElement\\Operator\\Group') %} {{ configElement.label }} {% else %} {{ output_channel_column_header(configElement, classname) }} {% endif %} {% endfor %} {# for sub groups add additional row to header #} {% for configElement in configArray %} {% if configElement is instanceof('\\OutputDataConfigToolkitBundle\\ConfigElement\\Operator\\Group') %} {% include 'areas/print-product-table/spec_attribute/column-attribute-table-header.html.twig' with { 'configArray': configElement.childs, 'classname': classname, 'levels': levels, 'currentLevel': (currentLevel + 1) } %} {% endif %} {% endfor %}