getDestinationProperty('effects')) { $effects = $row->getDestinationProperty('effects'); $row->setDestinationProperty('effects', []); } /** @var \Drupal\Image\Entity\ImageStyle $style */ $style = $this->getEntity($row, $old_destination_id_values); // Iterate the effects array so each effect plugin can be initialized. // Catch any missing plugin exceptions. foreach ($effects as $effect) { try { $style->addImageEffect($effect); } catch (PluginNotFoundException $e) { throw new MigrateException($e->getMessage(), 0, $e); } } $style->save(); return [$style->id()]; } }