You are here

public function ResultSet::setResultItems in Search API 8

Sets the query result items.

Parameters

\Drupal\search_api\Item\ItemInterface[] $result_items: The query result items, keyed by item ID.

Return value

$this

Overrides ResultSetInterface::setResultItems

File

src/Query/ResultSet.php, line 105

Class

ResultSet
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function setResultItems(array $result_items) {
  $this->resultItems = $result_items;
  return $this;
}