You are here

public function HelpBreadcrumbBuilder::applies in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/help_topics/src/HelpBreadcrumbBuilder.php \Drupal\help_topics\HelpBreadcrumbBuilder::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

core/modules/help_topics/src/HelpBreadcrumbBuilder.php, line 37

Class

HelpBreadcrumbBuilder
Provides a breadcrumb builder for help topic pages.

Namespace

Drupal\help_topics

Code

public function applies(RouteMatchInterface $route_match) {
  return $route_match
    ->getRouteName() == 'help.help_topic';
}