function FieldTranslationSynchronizerInterface::synchronizeItems
Same name in other branches
- 9 core/modules/content_translation/src/FieldTranslationSynchronizerInterface.php \Drupal\content_translation\FieldTranslationSynchronizerInterface::synchronizeItems()
- 8.9.x core/modules/content_translation/src/FieldTranslationSynchronizerInterface.php \Drupal\content_translation\FieldTranslationSynchronizerInterface::synchronizeItems()
- 10 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.
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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.