Skip to content
Snippets Groups Projects
Commit a61ea113 authored by Peter Philipp's avatar Peter Philipp Committed by Valentin Guignon
Browse files

Issue #3506667: FieldMapperBase not supporting programmatically declared properties

parent 3dc696ff
No related branches found
No related tags found
1 merge request!66Issue #3506667: FieldMapperBase not supporting programmatically declared properties
......@@ -295,20 +295,7 @@ abstract class FieldMapperBase extends PluginBase implements FieldMapperInterfac
return NULL;
}
$derived_entity_type = $this
->getExternalEntityType()
->getDerivedEntityType();
if (empty($derived_entity_type)) {
$this->logger->warning('FieldMapperBase::getFieldDefinition(): Cannot get external entity derived type.');
return NULL;
}
$fields = $this
->entityFieldManager
->getFieldDefinitions(
$derived_entity_type->id(),
$derived_entity_type->id()
);
$fields = $this->getExternalEntityType()->getMappableFields();
$this->fieldDefinition = $fields[$this->fieldName] ?? NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment