You are here

public function ContextBreadcrumbBuilder::applies in Context Breadcrumb 8

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.

Overrides BreadcrumbBuilderInterface::applies

File

src/Breadcrumb/ContextBreadcrumbBuilder.php, line 137

Class

ContextBreadcrumbBuilder
Class ConextBreadcrumbBuilder.

Namespace

Drupal\context_breadcrumb\Breadcrumb

Code

public function applies(RouteMatchInterface $route_match) {
  $this->contextReactions = $this->contextManager
    ->getActiveReactions('context_breadcrumb');
  return !empty($this->contextReactions);
}