Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / migration_templates / d7_comment_field.yml
index b4b3543db17036b7afd2cdda1d161b23bb74c8df..cd7337c7e51d58652362b956a0c650206b6fa574 100644 (file)
@@ -3,15 +3,22 @@ label: Comment field configuration
 migration_tags:
   - Drupal 7
 source:
-  plugin: d7_comment_type
+  plugin: d7_node_type
   constants:
     entity_type: node
     type: comment
 process:
   entity_type: 'constants/entity_type'
-  field_name: bundle
+  field_name:
+    -
+      plugin: migration_lookup
+      source: type
+      migration: d7_comment_type
+    -
+      plugin: skip_on_empty
+      method: row
   type: 'constants/type'
-  'settings/comment_type': bundle
+  'settings/comment_type': '@field_name'
 destination:
   plugin: entity:field_storage_config
 migration_dependencies: