function HelpBreadcrumbBuilder::applies
Same name in other branches
- 9 core/modules/help_topics/src/HelpBreadcrumbBuilder.php \Drupal\help_topics\HelpBreadcrumbBuilder::applies()
- 8.9.x core/modules/help_topics/src/HelpBreadcrumbBuilder.php \Drupal\help_topics\HelpBreadcrumbBuilder::applies()
- 10 core/modules/help/src/HelpBreadcrumbBuilder.php \Drupal\help\HelpBreadcrumbBuilder::applies()
Overrides BreadcrumbBuilderInterface::applies
File
-
core/
modules/ help/ src/ HelpBreadcrumbBuilder.php, line 23
Class
- HelpBreadcrumbBuilder
- Provides a breadcrumb builder for help topic pages.
Namespace
Drupal\helpCode
public function applies(RouteMatchInterface $route_match, ?CacheableMetadata $cacheable_metadata = NULL) {
// @todo Remove null safe operator in Drupal 12.0.0, see
// https://www.drupal.org/project/drupal/issues/3459277.
$cacheable_metadata?->addCacheContexts([
'route',
]);
return $route_match->getRouteName() == 'help.help_topic';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.