public function FieldTranslationSynchronizerInterface::synchronizeItems in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_translation/src/FieldTranslationSynchronizerInterface.php \Drupal\content_translation\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 $properties: An array of property names to be synchronized.
1 method overrides FieldTranslationSynchronizerInterface::synchronizeItems()
- FieldTranslationSynchronizer::synchronizeItems in core/
modules/ content_translation/ src/ FieldTranslationSynchronizer.php - Synchronize the items of a single field.
File
- core/
modules/ content_translation/ src/ FieldTranslationSynchronizerInterface.php, line 56
Class
- FieldTranslationSynchronizerInterface
- Provides field translation synchronization capabilities.
Namespace
Drupal\content_translationCode
public function synchronizeItems(array &$field_values, array $unchanged_items, $sync_langcode, array $translations, array $properties);