public function GroupBreadcrumbBuilder::applies in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Breadcrumb/GroupBreadcrumbBuilder.php \Drupal\rng\Breadcrumb\GroupBreadcrumbBuilder::applies()
- 3.x 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\BreadcrumbCode
public function applies(RouteMatchInterface $route_match) {
$group = $route_match
->getParameter('registration_group');
return $group instanceof GroupInterface;
}