breadcrumb.html.twig in Drupal 10
Same filename in this branch
- 10 core/themes/claro/templates/breadcrumb.html.twig
- 10 core/modules/system/templates/breadcrumb.html.twig
- 10 core/themes/starterkit_theme/templates/navigation/breadcrumb.html.twig
- 10 core/themes/classy/templates/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/stable/templates/navigation/breadcrumb.html.twig
- 10 core/themes/seven/templates/classy/navigation/breadcrumb.html.twig
- 10 core/themes/bartik/templates/classy/navigation/breadcrumb.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/components/navigation/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/profiles/demo_umami/themes/umami/templates/components/navigation/breadcrumb.html.twigView 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 %}