Skip to content
Snippets Groups Projects
Commit 76ee85d2 authored by Mike Ryan's avatar Mike Ryan
Browse files

Issue #2789459 by mikeryan: entity_lookup fails introspection with subfield destination

parent 3789e505
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,9 @@ class EntityLookup extends ProcessPluginBase implements ContainerFactoryPluginIn ...@@ -117,7 +117,9 @@ class EntityLookup extends ProcessPluginBase implements ContainerFactoryPluginIn
* {@inheritdoc} * {@inheritdoc}
*/ */
public function transform($value, MigrateExecutableInterface $migrateExecutable, Row $row, $destinationProperty) { public function transform($value, MigrateExecutableInterface $migrateExecutable, Row $row, $destinationProperty) {
$this->determineLookupProperties($destinationProperty); // In case of subfields ('field_reference/target_id'), extract the field
// name only.
$destinationProperty = reset(explode('/', $destinationProperty)); $this->determineLookupProperties($destinationProperty);
$this->destinationProperty = isset($this->configuration['destination_field']) ? $this->configuration['destination_field'] : NULL; $this->destinationProperty = isset($this->configuration['destination_field']) ? $this->configuration['destination_field'] : 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