You are here

public function SearchInterface::buildResults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 95
Contains \Drupal\search\Plugin\SearchInterface.

Class

SearchInterface
Defines a common interface for all SearchPlugin objects.

Namespace

Drupal\search\Plugin

Code

public function buildResults();