SearchController::searchHelp

public SearchController::searchHelp(SearchPageInterface $entity)

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 159

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;
}
doc_Drupal
2016-10-29 09:40:15
Comments
Leave a Comment

Please login to continue.