function SearchController::searchHelp

Same name in other branches
  1. 9 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::searchHelp()
  2. 8.9.x core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::searchHelp()
  3. 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 149

Class

SearchController
Route controller for search.

Namespace

Drupal\search\Controller

Code

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.