You are here

public function SearchApiQuery::addRetrievedFieldValue in Search API 8

Adds a field value to be retrieved.

Helps backends that support returning fields to determine which of the fields should actually be returned.

Parameters

string $field_id: The ID of the field whose value should be retrieved.

Return value

$this

1 call to SearchApiQuery::addRetrievedFieldValue()
SearchApiQuery::addField in src/Plugin/views/query/SearchApiQuery.php
Adds a field to the table.

File

src/Plugin/views/query/SearchApiQuery.php, line 308

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function addRetrievedFieldValue($field_id) {
  $this->retrievedFieldValues[$field_id] = $field_id;
  return $this;
}