You are here

public function Item::setFieldsExtracted in Search API 8

Sets the field extraction state of this item.

Can be used to tell an item that all its fields have been set already and it shouldn't attempt to extract more when getFields() is called. Or that some of its extracted fields have been removed and that it should extract them again when necessary.

Parameters

bool $fields_extracted: TRUE if all field values have been extracted already for this item. FALSE otherwise.

Return value

$this

Overrides ItemInterface::setFieldsExtracted

File

src/Item/Item.php, line 341

Class

Item
Provides a default implementation for a search item.

Namespace

Drupal\search_api\Item

Code

public function setFieldsExtracted($fields_extracted) {
  $this->fieldsExtracted = $fields_extracted;
  return $this;
}