You are here

public function FieldProcessorInterface::setTranslations in Translation Management Tool 8

Process the translated data for this field back into a structure that can be saved by the content entity.

Parameters

array $field_data: The translated data for this field.

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

See also

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

1 method overrides FieldProcessorInterface::setTranslations()
DefaultFieldProcessor::setTranslations in sources/content/src/DefaultFieldProcessor.php
Process the translated data for this field back into a structure that can be saved by the content entity.

File

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

Class

FieldProcessorInterface
Interface for content entity source field processors.

Namespace

Drupal\tmgmt_content

Code

public function setTranslations($field_data, FieldItemListInterface $field);