public function FieldTranslationSynchronizerInterface::synchronizeItems

Synchronize the items of a single field.

All the column values of the "active" language are compared to the unchanged values to detect any addition, removal or change in the items order. Subsequently the detected changes are performed on the field items in other available languages.

Parameters

array $field_values: The field values to be synchronized.

array $unchanged_items: The unchanged items to be used to detect changes.

string $sync_langcode: The language code of the items to use as source values.

array $translations: An array of all the available language codes for the given field.

array $columns: An array of column names to be synchronized.

1 method overrides FieldTranslationSynchronizerInterface::synchronizeItems()
FieldTranslationSynchronizer::synchronizeItems in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/FieldTranslationSynchronizer.php
Synchronize the items of a single field.

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/FieldTranslationSynchronizerInterface.php, line 59
Contains \Drupal\translation_entity\FieldTranslationSynchronizerInterface.

Class

FieldTranslationSynchronizerInterface
Provides field translation synchronization capabilities.

Namespace

Drupal\translation_entity

Code

public function synchronizeItems(array &$field_values, array $unchanged_items, $sync_langcode, array $translations, array $columns);