You are here

public function BusinessRulesBreadcrumb::applies in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/BusinessRulesBreadcrumb.php \Drupal\business_rules\BusinessRulesBreadcrumb::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.

Overrides PathBasedBreadcrumbBuilder::applies

File

src/BusinessRulesBreadcrumb.php, line 19

Class

BusinessRulesBreadcrumb
Adjust the breadcrumbs for the Business Rules module.

Namespace

Drupal\business_rules

Code

public function applies(RouteMatchInterface $route_match) {
  $route_name = $route_match
    ->getRouteName();
  if (stristr($route_name, 'entity.business_rule')) {
    return TRUE;
  }
}