You are here

public function Field::setValues in Search API 8

Sets the values of this field.

Parameters

array $values: The values of the field. These already have to have been processed by the data type plugin corresponding to this field's type.

Return value

$this

Overrides FieldInterface::setValues

File

src/Item/Field.php, line 546

Class

Field
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

public function setValues(array $values) {
  $this->values = array_values($values);
  return $this;
}