You are here

public function IndexController::pageTitle in Search API 8

Returns the page title for an index's "View" tab.

Parameters

\Drupal\search_api\IndexInterface $search_api_index: The index that is displayed.

Return value

string The page title.

1 string reference to 'IndexController::pageTitle'
search_api.routing.yml in ./search_api.routing.yml
search_api.routing.yml

File

src/Controller/IndexController.php, line 139

Class

IndexController
Provides route responses for search indexes.

Namespace

Drupal\search_api\Controller

Code

public function pageTitle(IndexInterface $search_api_index) {
  return new FormattableMarkup('@title', [
    '@title' => $search_api_index
      ->label(),
  ]);
}