- Issue created by @acbramley
When testing the module I exported a Microcontent → entity that had content moderation enabled. When importing, a PHP type error was thrown with:
TypeError: Drupal\single_content_sync\Plugin\SingleContentSyncFieldProcessor\GenericField::importFieldValue(): Argument #3 ($value) must be of type array, string given, called in /data/app/modules/contrib/single_content_sync/src/ContentImporter.php on line 334 in Drupal\single_content_sync\Plugin\SingleContentSyncFieldProcessor\GenericField->importFieldValue() (line 29 of modules/contrib/single_content_sync/src/Plugin/SingleContentSyncFieldProcessor/GenericField.php).
Debugging this is interesting as it seems like this works fine for Node entities (presumably some special handling with the base field)
Export a microcontent entity with content moderation enabled on it.
Active
1.4
Code