You are here

public function FieldInterface::addValue in Search API 8

Adds a value to this field.

Will take care of processing the value correctly with this field's data type plugin.

Parameters

mixed $value: A value to add to this field, not yet processed by the data type plugin.

Return value

$this

1 method overrides FieldInterface::addValue()
Field::addValue in src/Item/Field.php
Adds a value to this field.

File

src/Item/FieldInterface.php, line 308

Class

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

Namespace

Drupal\search_api\Item

Code

public function addValue($value);