You are here

public function ServerController::pageTitle in Search API 8

Returns the page title for a server's "View" tab.

Parameters

\Drupal\search_api\ServerInterface $search_api_server: The server that is displayed.

Return value

string The page title.

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

File

src/Controller/ServerController.php, line 95

Class

ServerController
Provides block routines for search server-specific routes.

Namespace

Drupal\search_api\Controller

Code

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