You are here

public function BreadcrumbManagerBuilder::applies in Breadcrumb Manager 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 PathBasedBreadcrumbBuilder::applies

File

src/Breadcrumb/BreadcrumbManagerBuilder.php, line 100

Class

BreadcrumbManagerBuilder
Class BreadcrumbManagerBuilder.

Namespace

Drupal\breadcrumb_manager\Breadcrumb

Code

public function applies(RouteMatchInterface $attributes) {
  return !$this
    ->isExcludedPath($attributes
    ->getRouteObject()
    ->getPath());
}