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
Same filename and directory in other branches
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.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 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 %}