Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / migration_templates / d6_comment_entity_form_display_subject.yml
index abe6191b8cbec07eb0c151a535fdab218211ae0b..8a68f3195a306abf8df2b3a1285e59129a371fbe 100644 (file)
@@ -3,7 +3,7 @@ label: Comment subject form display configuration
 migration_tags:
   - Drupal 6
 source:
-  plugin: d6_comment_variable_per_comment_type
+  plugin: d6_node_type
   constants:
     entity_type: comment
     field_name: subject
@@ -16,14 +16,23 @@ process:
   field_name: 'constants/field_name'
   form_mode: 'constants/form_mode'
   options: 'constants/options'
+  bundle:
+    -
+      plugin: migration_lookup
+      source: type
+      migration: d6_comment_type
+    -
+      plugin: skip_on_empty
+      method: row
   hidden:
     plugin: static_map
-    source: comment_type
-    default_value: false
+    source: comment_subject_field
     map:
-      comment_no_subject: true # Hide subject field
-      comment: false
-  bundle: comment_type
+      # If comment_subject_field = FALSE, then hidden = TRUE.
+      0: true
+      # If comment_subject_field = TRUE, then hidden = FALSE.
+      1: false
+    default_value: false
 destination:
   plugin: component_entity_form_display
 migration_dependencies: