public function SocialSearchBreadcrumbBuilder::applies in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 8 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 8.2 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 8.3 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 8.4 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 8.5 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 8.6 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 8.7 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 10.3.x modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 10.0.x modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 10.1.x modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
- 10.2.x modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::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
- modules/
social_features/ social_search/ src/ SocialSearchBreadcrumbBuilder.php, line 20
Class
- SocialSearchBreadcrumbBuilder
- Class to define the search breadcrumb builder.
Namespace
Drupal\social_searchCode
public function applies(RouteMatchInterface $route_match) {
$search_routes = [
'view.search_all.page',
'view.search_all.page_no_value',
'view.search_content.page',
'view.search_content.page_no_value',
'view.search_users.page',
'view.search_users.page_no_value',
'view.search_groups.page',
'view.search_groups.page_no_value',
];
return in_array($route_match
->getRouteName(), $search_routes);
}