public function RegistrationBreadcrumbBuilder::applies in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Breadcrumb/RegistrationBreadcrumbBuilder.php \Drupal\rng\Breadcrumb\RegistrationBreadcrumbBuilder::applies()
- 3.x src/Breadcrumb/RegistrationBreadcrumbBuilder.php \Drupal\rng\Breadcrumb\RegistrationBreadcrumbBuilder::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/ RegistrationBreadcrumbBuilder.php, line 22
Class
- RegistrationBreadcrumbBuilder
- Provides a breadcrumb builder for registrations.
Namespace
Drupal\rng\BreadcrumbCode
public function applies(RouteMatchInterface $route_match) {
$registration = $route_match
->getParameter('registration');
return $registration instanceof RegistrationInterface;
}