Mercurial > hg > isophonics-drupal-site
comparison core/modules/search/src/Controller/SearchController.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
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. |