Skip to content
Snippets Groups Projects
Commit d9d4cad8 authored by Dave Vasilevsky's avatar Dave Vasilevsky Committed by Mike Ryan
Browse files

Issue #2811425 by vasi: Strict warning: Only variables should be passed by...

Issue #2811425 by vasi: Strict warning: Only variables should be passed by reference in Drupal\migrate_plus\Plugin\migrate\process\EntityLookup->transform()
parent 6c5308ec
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,9 @@ class EntityLookup extends ProcessPluginBase implements ContainerFactoryPluginIn ...@@ -114,7 +114,9 @@ class EntityLookup extends ProcessPluginBase implements ContainerFactoryPluginIn
public function transform($value, MigrateExecutableInterface $migrateExecutable, Row $row, $destinationProperty) { public function transform($value, MigrateExecutableInterface $migrateExecutable, Row $row, $destinationProperty) {
// In case of subfields ('field_reference/target_id'), extract the field // In case of subfields ('field_reference/target_id'), extract the field
// name only. // name only.
$destinationProperty = reset(explode('/', $destinationProperty)); $this->determineLookupProperties($destinationProperty); $parts = explode('/', $destinationProperty);
$destinationProperty = reset($parts);
$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