templates/hc/header-menu-main.html.twig line 1

Open in your IDE?
  1. {% set items = _args.items|default([])|filter((item) => item is not empty and (not item.permission is defined or is_granted(item.permission))) %}
  2. <div class="hc-button-segment">
  3.     {% for item in items %}
  4.         <a href="{{ item.link|e('html_attr') }}" title="{{ item.title }}" class="hc-button hc-button--primary hc-button--brand hc-button--lg{% if item.active %} hc-button--selected{% endif %}">{{ item.title }}</a>
  5.     {% endfor %}
  6. </div>