You are here

public function ItemInterface::getFields in Search API 8

Returns the item's fields.

Parameters

bool $extract: (optional) If FALSE, only returns the fields that were previously set or extracted. Defaults to extracting the fields from the original object if necessary.

Return value

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

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

File

src/Item/ItemInterface.php, line 120

Class

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

Namespace

Drupal\search_api\Item

Code

public function getFields($extract = TRUE);