public function FieldsHelperInterface::extractFields in Search API 8
Extracts specific field values from a complex data object.
The values will be set directly on the given field objects, nothing is returned.
Parameters
\Drupal\Core\TypedData\ComplexDataInterface $item: The item from which fields should be extracted.
\Drupal\search_api\Item\FieldInterface[][] $fields: An associative array, keyed by property paths, mapped to field objects with that property path.
string|null $langcode: (optional) The code of the language the retrieved values should have.
1 method overrides FieldsHelperInterface::extractFields()
- FieldsHelper::extractFields in src/
Utility/ FieldsHelper.php - Extracts specific field values from a complex data object.
File
- src/
Utility/ FieldsHelperInterface.php, line 32
Class
- FieldsHelperInterface
- Provides an interface for implementations of the fields helper service.
Namespace
Drupal\search_api\UtilityCode
public function extractFields(ComplexDataInterface $item, array $fields, $langcode = NULL);