{% if 'menu_' in region %}
    {% include 'block.html.twig' %}
{% else %}
    {% set heading_id = attributes.id ~ '-menu'|clean_id %}
    <nav role="navigation" aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }}>
      {# Label. If not displayed, we still provide it for screen readers. #}
      {% if not configuration.label_display %}
        {% set title_attributes = title_attributes.addClass('visually-hidden') %}
      {% endif %}
      {{ title_prefix }}
      <h2{{ title_attributes }}>{{ configuration.label }}</h2>
      {{ title_suffix }}

      {# Menu. #}
      {% block content %}
        {{ content }}
      {% endblock %}
    </nav>
{% endif %}