You are here

public function RegistrantBreadcrumbBuilder::applies in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Breadcrumb/RegistrantBreadcrumbBuilder.php \Drupal\rng\Breadcrumb\RegistrantBreadcrumbBuilder::applies()
  2. 3.x src/Breadcrumb/RegistrantBreadcrumbBuilder.php \Drupal\rng\Breadcrumb\RegistrantBreadcrumbBuilder::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/RegistrantBreadcrumbBuilder.php, line 22

Class

RegistrantBreadcrumbBuilder
Provides a breadcrumb builder for registrants.

Namespace

Drupal\rng\Breadcrumb

Code

public function applies(RouteMatchInterface $route_match) {
  $registrant = $route_match
    ->getParameter('registrant');
  return $registrant instanceof RegistrantInterface;
}