Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldTranslationSynchronizerInterface.php

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 $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_translation

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal