Drupal investigation

breadcrumb.html.twig 594B

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