You are here

public function SearchController::searchHelp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::searchHelp()

Creates a render array for the search help page.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

\Drupal\search\SearchPageInterface $entity: The search page entity.

Return value

array The search help page.

File

core/modules/search/src/Controller/SearchController.php, line 168
Contains \Drupal\search\Controller\SearchController.

Class

SearchController
Route controller for search.

Namespace

Drupal\search\Controller

Code

public function searchHelp(SearchPageInterface $entity) {
  $build = array();
  $build['search_help'] = $entity
    ->getPlugin()
    ->getHelp();
  return $build;
}