public function FieldProcessorInterface::extractTranslatableData

Extracts the translatatable data structure from the given field.

Parameters

\Drupal\Core\Field\FieldItemListInterface $field: The field object.

Return value

array $data An array of elements where each element has the following keys:

  • #text
  • #translate

See also

\Drupal\tmgmt_content\Plugin\tmgmt\Source\ContentEntitySource::extractTranslatableData()

1 method overrides FieldProcessorInterface::extractTranslatableData()
DefaultFieldProcessor::extractTranslatableData in sources/content/src/DefaultFieldProcessor.php
Extracts the translatatable data structure from the given field.

File

sources/content/src/FieldProcessorInterface.php, line 27

Class

FieldProcessorInterface
Interface for content entity source field processors.

Namespace

Drupal\tmgmt_content

Code

public function extractTranslatableData(FieldItemListInterface $field);