protected function FieldTranslationSynchronizer::getFieldSynchronizationSettings in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/src/FieldTranslationSynchronizer.php \Drupal\content_translation\FieldTranslationSynchronizer::getFieldSynchronizationSettings()
- 9 core/modules/content_translation/src/FieldTranslationSynchronizer.php \Drupal\content_translation\FieldTranslationSynchronizer::getFieldSynchronizationSettings()
Returns the synchronization settings for the specified field.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: A field definition.
Return value
string[] An array of synchronized field property names.
File
- core/
modules/ content_translation/ src/ FieldTranslationSynchronizer.php, line 69
Class
- FieldTranslationSynchronizer
- Provides field translation synchronization capabilities.
Namespace
Drupal\content_translationCode
protected function getFieldSynchronizationSettings(FieldDefinitionInterface $field_definition) {
if ($field_definition instanceof ThirdPartySettingsInterface && $field_definition
->isTranslatable()) {
return $field_definition
->getThirdPartySetting('content_translation', 'translation_sync', []);
}
return [];
}