You are here

public function ResultSetInterface::addResultItem in Search API 8

Adds a new result item.

This method has to be invoked in the correct order, with the first-ordered item being added first and so on.

Parameters

\Drupal\search_api\Item\ItemInterface $result_item: One of the search results.

Return value

$this

1 method overrides ResultSetInterface::addResultItem()
ResultSet::addResultItem in src/Query/ResultSet.php
Adds a new result item.

File

src/Query/ResultSetInterface.php, line 60

Class

ResultSetInterface
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function addResultItem(ItemInterface $result_item);