breadcrumb.html.twig 649 B

12345678910111213141516171819202122232425
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a breadcrumb trail.
  5. *
  6. * Available variables:
  7. * - breadcrumb: Breadcrumb trail items.
  8. */
  9. #}
  10. {% if breadcrumb %}
  11. <nav class="breadcrumb" role="navigation" aria-labelledby="system-breadcrumb">
  12. <h2 id="system-breadcrumb" class="visually-hidden">{{ 'Breadcrumb'|t }}</h2>
  13. <ol class="breadcrumb__list">
  14. {% for item in breadcrumb %}
  15. <li class="breadcrumb__item">
  16. {% if item.url %}
  17. <a href="{{ item.url }}" class="breadcrumb__link">{{ item.text }}</a>
  18. {% else %}
  19. {{ item.text }}
  20. {% endif %}
  21. </li>
  22. {% endfor %}
  23. </ol>
  24. </nav>
  25. {% endif %}