You are here

public function BreadcrumbBuilderInterface::applies in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Breadcrumb/BreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface::applies()
  2. 9 core/lib/Drupal/Core/Breadcrumb/BreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface::applies()

Whether this breadcrumb builder should be used to build the breadcrumb.

Parameters

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

Return value

bool TRUE if this builder should be used or FALSE to let other builders decide.

2 methods override BreadcrumbBuilderInterface::applies()
ForumListingBreadcrumbBuilder::applies in core/modules/forum/src/Breadcrumb/ForumListingBreadcrumbBuilder.php
Whether this breadcrumb builder should be used to build the breadcrumb.
ForumNodeBreadcrumbBuilder::applies in core/modules/forum/src/Breadcrumb/ForumNodeBreadcrumbBuilder.php
Whether this breadcrumb builder should be used to build the breadcrumb.

File

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

Class

BreadcrumbBuilderInterface
Defines an interface for classes that build breadcrumbs.

Namespace

Drupal\Core\Breadcrumb

Code

public function applies(RouteMatchInterface $route_match);