Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / migration_templates / d6_comment_type.yml
index 69a2bd86519dd9af65c288983531d89aa213708c..b86ae246e7081f341134b15df2322f36b624c56c 100644 (file)
@@ -3,13 +3,31 @@ label: Comment type
 migration_tags:
   - Drupal 6
 source:
-  plugin: d6_comment_variable_per_comment_type
+  plugin: d6_node_type
   constants:
     entity_type: node
+    id_prefix: 'comment_node_'
+    label_suffix: 'comment'
 process:
   target_entity_type_id: 'constants/entity_type'
-  id: comment_type
-  label: label
-  description: description
+  id:
+    -
+      plugin: concat
+      source:
+        - 'constants/id_prefix'
+        - type
+    -
+      plugin: static_map
+      bypass: true
+      # The Forum module provides its own comment type (comment_forum), which we
+      # want to reuse if it exists.
+      map:
+        comment_node_forum: comment_forum
+  label:
+    plugin: concat
+    source:
+      - name
+      - 'constants/label_suffix'
+    delimiter: ' '
 destination:
   plugin: entity:comment_type