Skip to content
Snippets Groups Projects
Commit 71d9179e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2099391 by dawehner, marthinal | geodaniel: Breadcrumbs for Search...

Issue #2099391 by dawehner, marthinal | geodaniel: Breadcrumbs for Search module should match tab titles.
parent 27da86c9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -77,6 +77,7 @@ public function view(Request $request, $plugin_id = NULL, $keys = NULL) { ...@@ -77,6 +77,7 @@ public function view(Request $request, $plugin_id = NULL, $keys = NULL) {
if (!$keys && $request->query->has('keys')) { if (!$keys && $request->query->has('keys')) {
$keys = trim($request->query->get('keys')); $keys = trim($request->query->get('keys'));
} }
$build['#title'] = $this->t('Search');
if (!empty($plugin_id)) { if (!empty($plugin_id)) {
$active_plugin_info = $this->searchManager->getActiveDefinitions(); $active_plugin_info = $this->searchManager->getActiveDefinitions();
......
...@@ -42,6 +42,7 @@ protected function routes(RouteCollection $collection) { ...@@ -42,6 +42,7 @@ protected function routes(RouteCollection $collection) {
$path = 'search/' . $search_info['path'] . '/{keys}'; $path = 'search/' . $search_info['path'] . '/{keys}';
$defaults = array( $defaults = array(
'_content' => 'Drupal\search\Controller\SearchController::view', '_content' => 'Drupal\search\Controller\SearchController::view',
'_title' => $search_info['title'],
'plugin_id' => $plugin_id, 'plugin_id' => $plugin_id,
'keys' => '', 'keys' => '',
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment