function SearchController::editTitle
Same name in other branches
- 9 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::editTitle()
- 10 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::editTitle()
- 11.x core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::editTitle()
Route title callback.
Parameters
\Drupal\search\SearchPageInterface $search_page: The search page entity.
Return value
string The title for the search page edit form.
1 string reference to 'SearchController::editTitle'
- search.routing.yml in core/
modules/ search/ search.routing.yml - core/modules/search/search.routing.yml
File
-
core/
modules/ search/ src/ Controller/ SearchController.php, line 190
Class
- SearchController
- Route controller for search.
Namespace
Drupal\search\ControllerCode
public function editTitle(SearchPageInterface $search_page) {
return $this->t('Edit %label search page', [
'%label' => $search_page->label(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.