function SearchInterface::execute

Same name in other branches
  1. 9 core/modules/search/src/Plugin/SearchInterface.php \Drupal\search\Plugin\SearchInterface::execute()
  2. 8.9.x core/modules/search/src/Plugin/SearchInterface.php \Drupal\search\Plugin\SearchInterface::execute()
  3. 10 core/modules/search/src/Plugin/SearchInterface.php \Drupal\search\Plugin\SearchInterface::execute()

Executes the search.

Return value

array A structured list of search results.

1 call to SearchInterface::execute()
SearchPluginBase::buildResults in core/modules/search/src/Plugin/SearchPluginBase.php
4 methods override SearchInterface::execute()
HelpSearch::execute in core/modules/help/src/Plugin/Search/HelpSearch.php
NodeSearch::execute in core/modules/node/src/Plugin/Search/NodeSearch.php
SearchExtraTypeSearch::execute in core/modules/search/tests/modules/search_extra_type/src/Plugin/Search/SearchExtraTypeSearch.php
Execute the search.
UserSearch::execute in core/modules/user/src/Plugin/Search/UserSearch.php

File

core/modules/search/src/Plugin/SearchInterface.php, line 80

Class

SearchInterface
Defines a common interface for all SearchPlugin objects.

Namespace

Drupal\search\Plugin

Code

public function execute();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.