function BreadcrumbBuilderInterface::build

Same name in other branches
  1. 9 core/lib/Drupal/Core/Breadcrumb/BreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface::build()
  2. 8.9.x core/lib/Drupal/Core/Breadcrumb/BreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface::build()
  3. 10 core/lib/Drupal/Core/Breadcrumb/BreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface::build()

Builds the breadcrumb.

There is no need to add any cacheable metadata that was already added in applies() as that will be automatically added for you.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

Return value

\Drupal\Core\Breadcrumb\Breadcrumb A breadcrumb.

7 methods override BreadcrumbBuilderInterface::build()
BookBreadcrumbBuilder::build in core/modules/book/src/BookBreadcrumbBuilder.php
Builds the breadcrumb.
BreadcrumbManager::build in core/lib/Drupal/Core/Breadcrumb/BreadcrumbManager.php
Builds the breadcrumb.
CommentBreadcrumbBuilder::build in core/modules/comment/src/CommentBreadcrumbBuilder.php
Builds the breadcrumb.
ForumBreadcrumbBuilderBase::build in core/modules/forum/src/Breadcrumb/ForumBreadcrumbBuilderBase.php
Builds the breadcrumb.
HelpBreadcrumbBuilder::build in core/modules/help/src/HelpBreadcrumbBuilder.php
Builds the breadcrumb.

... See full list

File

core/lib/Drupal/Core/Breadcrumb/BreadcrumbBuilderInterface.php, line 45

Class

BreadcrumbBuilderInterface
Defines an interface for classes that build breadcrumbs.

Namespace

Drupal\Core\Breadcrumb

Code

public function build(RouteMatchInterface $route_match);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.