Breadcrumb
Indicate the current page’s location within a navigational hierarchy that automatically adds separators via CSS.
Component Properties
breadcrumb
: An array containing the breadcrumb items. Each item should be an associative array withtext
andurl
properties. Theurl
property can benull
for the current page.breadcrumb_utility_classes
(optional): An array of additional CSS classes that will be added to the.breadcrumb
element.breadcrumb_attributes
(optional): Adrupal attributes
array that can be used to add additional attributes to the.breadcrumb
element.
Usage
Include the breadcrumb component in your Twig template and pass the necessary parameters:
Example 1: General usage:
Example 2: Simple Drupal init:
Last updated