public function SearchInterface::buildResults in Drupal 8
Same name and namespace in other branches
- 9 core/modules/search/src/Plugin/SearchInterface.php \Drupal\search\Plugin\SearchInterface::buildResults()
- 10 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\PluginCode
public function buildResults();