public function SearchController::searchHelp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::searchHelp()
Creates a render array for the search help page.
Parameters
\Drupal\search\SearchPageInterface $entity: The search page entity.
Return value
array The search help page.
File
- core/
modules/ search/ src/ Controller/ SearchController.php, line 158
Class
- SearchController
- Route controller for search.
Namespace
Drupal\search\ControllerCode
public function searchHelp(SearchPageInterface $entity) {
$build = [];
$build['search_help'] = $entity
->getPlugin()
->getHelp();
return $build;
}