From 71d9179e576e7082b84614369f25150ae0a3adc3 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Thu, 28 Nov 2013 21:17:44 -0400 Subject: [PATCH] Issue #2099391 by dawehner, marthinal | geodaniel: Breadcrumbs for Search module should match tab titles. --- .../search/lib/Drupal/search/Controller/SearchController.php | 1 + .../search/lib/Drupal/search/Routing/SearchRouteSubscriber.php | 1 + 2 files changed, 2 insertions(+) diff --git a/core/modules/search/lib/Drupal/search/Controller/SearchController.php b/core/modules/search/lib/Drupal/search/Controller/SearchController.php index 18f38e3f4fe7..bda72592326a 100644 --- a/core/modules/search/lib/Drupal/search/Controller/SearchController.php +++ b/core/modules/search/lib/Drupal/search/Controller/SearchController.php @@ -77,6 +77,7 @@ public function view(Request $request, $plugin_id = NULL, $keys = NULL) { if (!$keys && $request->query->has('keys')) { $keys = trim($request->query->get('keys')); } + $build['#title'] = $this->t('Search'); if (!empty($plugin_id)) { $active_plugin_info = $this->searchManager->getActiveDefinitions(); diff --git a/core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php b/core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php index dfb634c55757..258d8db4c393 100644 --- a/core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php +++ b/core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php @@ -42,6 +42,7 @@ protected function routes(RouteCollection $collection) { $path = 'search/' . $search_info['path'] . '/{keys}'; $defaults = array( '_content' => 'Drupal\search\Controller\SearchController::view', + '_title' => $search_info['title'], 'plugin_id' => $plugin_id, 'keys' => '', ); -- GitLab