You are here

public function SearchController::editTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 200
Contains \Drupal\search\Controller\SearchController.

Class

SearchController
Route controller for search.

Namespace

Drupal\search\Controller

Code

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