You are here

public function FieldsHelperInterface::extractField in Search API 8

Extracts value and original type from a single piece of data.

Parameters

\Drupal\Core\TypedData\TypedDataInterface $data: The piece of data from which to extract information.

\Drupal\search_api\Item\FieldInterface $field: The field into which to put the extracted data.

1 method overrides FieldsHelperInterface::extractField()
FieldsHelper::extractField in src/Utility/FieldsHelper.php
Extracts value and original type from a single piece of data.

File

src/Utility/FieldsHelperInterface.php, line 42

Class

FieldsHelperInterface
Provides an interface for implementations of the fields helper service.

Namespace

Drupal\search_api\Utility

Code

public function extractField(TypedDataInterface $data, FieldInterface $field);