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'
File
- src/
Controller/ IndexController.php, line 139
Class
- IndexController
- Provides route responses for search indexes.
Namespace
Drupal\search_api\ControllerCode
public function pageTitle(IndexInterface $search_api_index) {
return new FormattableMarkup('@title', [
'@title' => $search_api_index
->label(),
]);
}