You are here

public function SearchController::editTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::editTitle()
  2. 9 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\Controller

Code

public function editTitle(SearchPageInterface $search_page) {
  return $this
    ->t('Edit %label search page', [
    '%label' => $search_page
      ->label(),
  ]);
}