Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / migration_templates / d6_comment_field.yml
index d14d1aa4fc1dc671651c3028d1cb5a3750bc8fad..5cbf5d41f42ff5f73670d01df0be6ccea0908bb6 100644 (file)
@@ -3,20 +3,24 @@ label: Comment field configuration
 migration_tags:
   - Drupal 6
 source:
-  plugin: d6_comment_variable_per_comment_type
+  plugin: d6_node_type
   constants:
     entity_type: node
     type: comment
 process:
   entity_type: 'constants/entity_type'
-  field_name: comment_type
+  field_name:
+    -
+      plugin: migration_lookup
+      source: type
+      migration: d6_comment_type
+    -
+      plugin: skip_on_empty
+      method: row
   type: 'constants/type'
-  'settings/comment_type': comment_type
+  'settings/comment_type': '@field_name'
 destination:
   plugin: entity:field_storage_config
-  dependencies:
-    module:
-      - comment
 migration_dependencies:
   required:
     - d6_comment_type