breadcrumb.html.twig

Same filename in this branch
  1. 8.9.x core/themes/seven/templates/classy/navigation/breadcrumb.html.twig
  2. 8.9.x core/themes/claro/templates/breadcrumb.html.twig
  3. 8.9.x core/themes/bartik/templates/classy/navigation/breadcrumb.html.twig
  4. 8.9.x core/themes/stable/templates/navigation/breadcrumb.html.twig
  5. 8.9.x core/themes/classy/templates/navigation/breadcrumb.html.twig
  6. 8.9.x core/modules/system/templates/breadcrumb.html.twig
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twig
  2. 9 core/themes/olivero/templates/navigation/breadcrumb.html.twig
  3. 9 core/themes/stable9/templates/navigation/breadcrumb.html.twig
  4. 9 core/themes/seven/templates/classy/navigation/breadcrumb.html.twig
  5. 9 core/themes/claro/templates/breadcrumb.html.twig
  6. 9 core/themes/bartik/templates/classy/navigation/breadcrumb.html.twig
  7. 9 core/themes/stable/templates/navigation/breadcrumb.html.twig
  8. 9 core/themes/starterkit_theme/templates/navigation/breadcrumb.html.twig
  9. 9 core/themes/classy/templates/navigation/breadcrumb.html.twig
  10. 9 core/modules/system/templates/breadcrumb.html.twig
  11. 10 core/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twig
  12. 10 core/themes/olivero/templates/navigation/breadcrumb.html.twig
  13. 10 core/themes/stable9/templates/navigation/breadcrumb.html.twig
  14. 10 core/themes/claro/templates/breadcrumb.html.twig
  15. 10 core/themes/starterkit_theme/templates/navigation/breadcrumb.html.twig
  16. 10 core/modules/system/templates/breadcrumb.html.twig
  17. 11.x core/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twig
  18. 11.x core/themes/olivero/templates/navigation/breadcrumb.html.twig
  19. 11.x core/themes/stable9/templates/navigation/breadcrumb.html.twig
  20. 11.x core/themes/claro/templates/breadcrumb.html.twig
  21. 11.x core/themes/starterkit_theme/templates/navigation/breadcrumb.html.twig
  22. 11.x core/modules/system/templates/breadcrumb.html.twig

Theme override for a breadcrumb trail.

Available variables:

  • breadcrumb: Breadcrumb trail items.
3 theme calls to breadcrumb.html.twig
Breadcrumb::toRenderable in core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php
Returns a render array representation of the object.
ForumTest::verifyForums in core/modules/forum/tests/src/Functional/ForumTest.php
Verifies that the logged in user has access to a forum node.
ForumTest::verifyForumView in core/modules/forum/tests/src/Functional/ForumTest.php
Verifies the display of a forum page.

File

core/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twig

View source
  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>
  14. {% for item in breadcrumb %}
  15. <li>
  16. {% if item.url %}
  17. <a href="{{ item.url }}">{{ item.text }}</a>
  18. {% else %}
  19. {{ item.text }}
  20. {% endif %}
  21. </li>
  22. {% endfor %}
  23. {#
  24. Once the breadcrumb loop completes, we add the current page title.
  25. This variable is created in umami.theme.
  26. #}
  27. <li> {{ current_page_title }}</li>
  28. </ol>
  29. </nav>
  30. {% endif %}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.