function SearchController::searchHelp
Same name in other branches
- 8.9.x core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::searchHelp()
- 10 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::searchHelp()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.