breadcrumb.html.twig
Same filename in this branch
- 10 core/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twig
- 10 core/themes/olivero/templates/navigation/breadcrumb.html.twig
- 10 core/themes/stable9/templates/navigation/breadcrumb.html.twig
- 10 core/themes/starterkit_theme/templates/navigation/breadcrumb.html.twig
- 10 core/modules/system/templates/breadcrumb.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twig
- 9 core/themes/olivero/templates/navigation/breadcrumb.html.twig
- 9 core/themes/stable9/templates/navigation/breadcrumb.html.twig
- 9 core/themes/seven/templates/classy/navigation/breadcrumb.html.twig
- 9 core/themes/claro/templates/breadcrumb.html.twig
- 9 core/themes/bartik/templates/classy/navigation/breadcrumb.html.twig
- 9 core/themes/stable/templates/navigation/breadcrumb.html.twig
- 9 core/themes/starterkit_theme/templates/navigation/breadcrumb.html.twig
- 9 core/themes/classy/templates/navigation/breadcrumb.html.twig
- 9 core/modules/system/templates/breadcrumb.html.twig
- 8.9.x core/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twig
- 8.9.x core/themes/seven/templates/classy/navigation/breadcrumb.html.twig
- 8.9.x core/themes/claro/templates/breadcrumb.html.twig
- 8.9.x core/themes/bartik/templates/classy/navigation/breadcrumb.html.twig
- 8.9.x core/themes/stable/templates/navigation/breadcrumb.html.twig
- 8.9.x core/themes/classy/templates/navigation/breadcrumb.html.twig
- 8.9.x core/modules/system/templates/breadcrumb.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twig
- 11.x core/themes/olivero/templates/navigation/breadcrumb.html.twig
- 11.x core/themes/stable9/templates/navigation/breadcrumb.html.twig
- 11.x core/themes/claro/templates/breadcrumb.html.twig
- 11.x core/themes/starterkit_theme/templates/navigation/breadcrumb.html.twig
- 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 - 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/
themes/ claro/ templates/ breadcrumb.html.twig
View source
- {#
- /**
- * @file
- * Theme override for a breadcrumb trail.
- *
- * Available variables:
- * - breadcrumb: Breadcrumb trail items.
- */
- #}
- {% if breadcrumb %}
- <nav class="breadcrumb" role="navigation" aria-labelledby="system-breadcrumb">
- <h2 id="system-breadcrumb" class="visually-hidden">{{ 'Breadcrumb'|t }}</h2>
- <ol class="breadcrumb__list">
- {% for item in breadcrumb %}
- <li class="breadcrumb__item">
- {% if item.url %}
- <a href="{{ item.url }}" class="breadcrumb__link">{{ item.text }}</a>
- {% else %}
- {{ item.text }}
- {% endif %}
- </li>
- {% endfor %}
- </ol>
- </nav>
- {% endif %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.