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