summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-11-29 01:17:44 (GMT)
committerAlex Pott2013-11-29 01:17:44 (GMT)
commit71d9179e576e7082b84614369f25150ae0a3adc3 (patch)
tree4a5d43ffd70037779f4ca5a563619ba135004612
parent27da86c99fd2e89190bb4c149fd877ed37cb67f6 (diff)
Issue #2099391 by dawehner, marthinal | geodaniel: Breadcrumbs for Search module should match tab titles.
-rw-r--r--core/modules/search/lib/Drupal/search/Controller/SearchController.php1
-rw-r--r--core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/modules/search/lib/Drupal/search/Controller/SearchController.php b/core/modules/search/lib/Drupal/search/Controller/SearchController.php
index 18f38e3..bda7259 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 @@ class SearchController extends ControllerBase implements ContainerInjectionInter
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 dfb634c..258d8db 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 @@ class SearchRouteSubscriber extends RouteSubscriberBase {
$path = 'search/' . $search_info['path'] . '/{keys}';
$defaults = array(
'_content' => 'Drupal\search\Controller\SearchController::view',
+ '_title' => $search_info['title'],
'plugin_id' => $plugin_id,
'keys' => '',
);