breadcrumb.html.twig
Same filename in this branch
- 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
Same filename in other branches
- 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
- 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/claro/templates/breadcrumb.html.twig
- 10 core/themes/starterkit_theme/templates/navigation/breadcrumb.html.twig
- 10 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 - 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
- {#
- /**
- * @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>
- {% for item in breadcrumb %}
- <li>
- {% if item.url %}
- <a href="{{ item.url }}">{{ item.text }}</a>
- {% else %}
- {{ item.text }}
- {% endif %}
- </li>
- {% endfor %}
- {#
- Once the breadcrumb loop completes, we add the current page title.
- This variable is created in umami.theme.
- #}
- <li> {{ current_page_title }}</li>
- </ol>
- </nav>
- {% endif %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.