Overrides ProcessPluginBase::transform
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { if (is_array($value)) { $value = reset($value); } $entity = $this->storage ->load($value); if ($entity instanceof EntityInterface) { return $entity->id(); } return FALSE; }