Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / migration_templates / d6_comment_entity_display.yml
index c650673188a9c3dc292d0ebcc8aa45b9b51e9963..89e159c47c83d8292a4eecc38d3d42620a65fb0e 100644 (file)
@@ -3,10 +3,9 @@ label: Comment display configuration
 migration_tags:
   - Drupal 6
 source:
-  plugin: d6_comment_variable
+  plugin: d6_node_type
   constants:
     entity_type: node
-    field_name: comment
     view_mode: default
     options:
       label: hidden
@@ -14,10 +13,17 @@ source:
       weight: 20
 process:
   entity_type: 'constants/entity_type'
-  field_name: 'constants/field_name'
+  field_name:
+    -
+      plugin: migration_lookup
+      source: type
+      migration: d6_comment_type
+    -
+      plugin: skip_on_empty
+      method: row
   view_mode: 'constants/view_mode'
   options: 'constants/options'
-  bundle: node_type
+  bundle: type
 destination:
   plugin: component_entity_display
 migration_dependencies: