Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SearchController.php

function 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 181

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(),
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal