Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SearchController.php

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal