X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcontent_translation%2Fsrc%2FFieldTranslationSynchronizerInterface.php;fp=web%2Fcore%2Fmodules%2Fcontent_translation%2Fsrc%2FFieldTranslationSynchronizerInterface.php;h=a07ac59f8ccb09f7e74ab993db6483cfdf0cb30f;hp=88cb9217cdb1bdf97bd41a55586db520e7dfca39;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/content_translation/src/FieldTranslationSynchronizerInterface.php b/web/core/modules/content_translation/src/FieldTranslationSynchronizerInterface.php index 88cb9217c..a07ac59f8 100644 --- a/web/core/modules/content_translation/src/FieldTranslationSynchronizerInterface.php +++ b/web/core/modules/content_translation/src/FieldTranslationSynchronizerInterface.php @@ -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); + }