function SearchInterface::buildResults

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

Executes the search and builds render arrays for the result items.

Return value

array An array of render arrays of search result items (generally each item has '#theme' set to 'search_result'), or an empty array if there are no results.

1 method overrides SearchInterface::buildResults()
SearchPluginBase::buildResults in core/modules/search/src/Plugin/SearchPluginBase.php
Executes the search and builds render arrays for the result items.

File

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

Class

SearchInterface
Defines a common interface for all SearchPlugin objects.

Namespace

Drupal\search\Plugin

Code

public function buildResults();

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