{% extends 'knp_menu.html.twig' %} {#{% macro attributes(attributes) %}#} {# {% for name, value in attributes %}#} {# {%- if value is not none and value is not same as(false) -%}#} {# {{- ' %s="%s"'|format(name, value is same as(true) ? name|e : value|e)|raw -}}#} {# {%- endif -%}#} {# {%- endfor -%}#} {#{% endmacro %}#} {#{% block compressed_root %}#} {# {% apply spaceless %}#} {# {{ block('root') }}#} {# {% endapply %}#} {#{% endblock %}#} {% block root %} {% set listAttributes = item.childrenAttributes %} {% set listAttributes = listAttributes|merge({'class': 'fr-nav__list'}) %} {% set attributes = item.attributes %} {% set id = attributes.id|default(null)%} {% set ariaLabel = attribute(attributes, 'aria-label') | default("Menu principal")%} {% endblock %} {#{% block list %}#} {# {% if item.hasChildren and options.depth is not same as(0) and item.displayChildren %}#} {# {% import _self as knp_menu %}#} {#