You are here

public function PrettyPathBreadcrumb::applies in Facets Pretty Paths 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/PrettyPathBreadcrumb.php, line 22

Class

PrettyPathBreadcrumb
Pretty Paths breadcrumb builder.

Namespace

Drupal\facets_pretty_paths

Code

public function applies(RouteMatchInterface $route_match) {
  if ($route_match
    ->getParameter('facets_query')) {
    return TRUE;
  }
  return FALSE;
}