fix: #3617512 \Drupal\Core\DefaultContent Exporter/Importer silently drops and cannot import 'map' field values
Closes #3617512
- Exporter.php:
exportFieldItem()starts with$item->getValue()so data outside static property definitions (map fields) isn't dropped. - Importer.php:
setFieldValues()resolves only known properties (including computed ones, viagetProperties(TRUE))againstitem_value, then uses$item->setValue(), so no per-type special-casing, and computed properties like entity-reference'sentityare handled correctly. - Tests:
testMapFieldRoundTrip(no properties at all) andtestEntityReferenceFieldRoundTrip(compound + computed) both added toImporterTest.phpand verified against the fix.