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
Default theme implementation 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/modules/system/templates/breadcrumb.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a breadcrumb trail.
- *
- * Available variables:
- * - breadcrumb: Breadcrumb trail items.
- *
- * @ingroup themeable
- */
- #}
- {% if breadcrumb %}
- <nav 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 %}
- </ol>
- </nav>
- {% endif %}