You are here

public function ItemInterface::setFields in Search API 8

Sets the item's fields.

Parameters

\Drupal\search_api\Item\FieldInterface[] $fields: An array with the fields of this item, keyed by field identifier.

Return value

$this

1 method overrides ItemInterface::setFields()
Item::setFields in src/Item/Item.php
Sets the item's fields.

File

src/Item/ItemInterface.php, line 147

Class

ItemInterface
Represents a search item being indexed or returned as a search result.

Namespace

Drupal\search_api\Item

Code

public function setFields(array $fields);