Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / content_translation / src / FieldTranslationSynchronizerInterface.php
index 88cb9217cdb1bdf97bd41a55586db520e7dfca39..a07ac59f8ccb09f7e74ab993db6483cfdf0cb30f 100644 (file)
@@ -3,6 +3,7 @@
 namespace Drupal\content_translation;
 
 use Drupal\Core\Entity\ContentEntityInterface;
+use Drupal\Core\Field\FieldDefinitionInterface;
 
 /**
  * Provides field translation synchronization capabilities.
@@ -54,4 +55,15 @@ interface FieldTranslationSynchronizerInterface {
    */
   public function synchronizeItems(array &$field_values, array $unchanged_items, $sync_langcode, array $translations, array $columns);
 
+  /**
+   * Returns the synchronized properties for the specified field definition.
+   *
+   * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
+   *   A field definition.
+   *
+   * @return string[]
+   *   An array of synchronized field property names.
+   */
+  public function getFieldSynchronizedProperties(FieldDefinitionInterface $field_definition);
+
 }