Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / migrate_plus / src / Plugin / migrate / process / Merge.php
index e646ca739b8c4abe11c73ffb37631cc6305fb5ad..1e0467917ca28f143019d56c295ec064e20d5f29 100644 (file)
@@ -27,7 +27,7 @@ use Drupal\migrate\Row;
  *      source: field_section
  *      process:
  *        target_id:
- *          plugin: migration
+ *          plugin: migration_lookup
  *          migration: field_collection_field_section_to_paragraph
  *          source: value
  *    temp_images:
@@ -35,7 +35,7 @@ use Drupal\migrate\Row;
  *      source: field_image
  *      process
  *        target_id:
- *          plugin: migration
+ *          plugin: migration_lookup
  *          migration: image_entities_to_paragraph
  *          source: fid
  *    paragraphs_field:
@@ -56,7 +56,7 @@ class Merge extends ProcessPluginBase {
       throw new MigrateException('Input should be an array.');
     }
     $new_value = [];
-    foreach($value as $item) {
+    foreach ($value as $item) {
       if (!is_array($item)) {
         throw new MigrateException('One of the items is not an array that can be merged.');
       }