You are here

public function GroupBreadcrumbBuilder::applies in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Breadcrumb/GroupBreadcrumbBuilder.php \Drupal\rng\Breadcrumb\GroupBreadcrumbBuilder::applies()
  2. 8 src/Breadcrumb/GroupBreadcrumbBuilder.php \Drupal\rng\Breadcrumb\GroupBreadcrumbBuilder::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 BreadcrumbBuilderInterface::applies

File

src/Breadcrumb/GroupBreadcrumbBuilder.php, line 22

Class

GroupBreadcrumbBuilder
Provides a breadcrumb builder for groups.

Namespace

Drupal\rng\Breadcrumb

Code

public function applies(RouteMatchInterface $route_match) {
  $group = $route_match
    ->getParameter('registration_group');
  return $group instanceof GroupInterface;
}