You are here

public function SocialSearchBreadcrumbBuilder::applies in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  2. 8 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  3. 8.2 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  4. 8.3 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  5. 8.4 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  6. 8.5 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  7. 8.7 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  8. 8.8 modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  9. 10.3.x modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  10. 10.0.x modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  11. 10.1.x modules/social_features/social_search/src/SocialSearchBreadcrumbBuilder.php \Drupal\social_search\SocialSearchBreadcrumbBuilder::applies()
  12. 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_search

Code

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);
}