You are here

public function FieldTranslationSynchronizerInterface::synchronizeItems in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 $columns: An array of column 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 60
Contains \Drupal\content_translation\FieldTranslationSynchronizerInterface.

Class

FieldTranslationSynchronizerInterface
Provides field translation synchronization capabilities.

Namespace

Drupal\content_translation

Code

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