We have custom entity type X, which has a definition in src/Entity/X.php
public static function baseFieldDefinitions(EntityTypeInterface $entity_type): array {
$fields['title']
->setSettings([
'text_processing' => 0,
])
->setTranslatable(TRUE);
In our node type, we have entity reference to these X.
The export exports 'title' like this:
field_x:
-
uuid: 4ecb6039-3fd7-4040-8bc3-0be4d3d765bb
entity_type: x
bundle: bundle_x
base_fields:
title: 'The title of the X'
When importing this, the importer fails in importFieldValue, because it expects the 'title' to be an array value, not a string.
It seems the code it tries to treat entity 'property' (base field) as a UI field, which always has value as an array.
Issue fork single_content_sync-3562380
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nginex commentedComment #6
nginex commentedComment #7
jvdkolk commentedWorks!
Comment #8
nginex commented