comparison core/modules/search/src/Controller/SearchController.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
210 } 210 }
211 elseif ($op == 'disable') { 211 elseif ($op == 'disable') {
212 $this->messenger()->addStatus($this->t('The %label search page has been disabled.', ['%label' => $search_page->label()])); 212 $this->messenger()->addStatus($this->t('The %label search page has been disabled.', ['%label' => $search_page->label()]));
213 } 213 }
214 214
215 $url = $search_page->urlInfo('collection'); 215 $url = $search_page->toUrl('collection');
216 return $this->redirect($url->getRouteName(), $url->getRouteParameters(), $url->getOptions()); 216 return $this->redirect($url->getRouteName(), $url->getRouteParameters(), $url->getOptions());
217 } 217 }
218 218
219 /** 219 /**
220 * Sets the search page as the default. 220 * Sets the search page as the default.