d54ca09dbdeb54b087bb6ce75cbb42f161c9e83a
[yaffs-website] / web / core / modules / comment / migration_templates / d7_comment_type.yml
1 id: d7_comment_type
2 label: Comment type
3 migration_tags:
4   - Drupal 7
5 source:
6   plugin: d7_node_type
7   constants:
8     entity_type: node
9     id_prefix: 'comment_node_'
10     label_suffix: 'comment'
11 process:
12   target_entity_type_id: 'constants/entity_type'
13   id:
14     -
15       plugin: concat
16       source:
17         - 'constants/id_prefix'
18         - type
19     -
20       plugin: static_map
21       bypass: true
22       # The Forum module provides its own comment type (comment_forum), which we
23       # want to reuse if it exists.
24       map:
25         comment_node_forum: comment_forum
26   label:
27     plugin: concat
28     source:
29       - name
30       - 'constants/label_suffix'
31     delimiter: ' '
32 destination:
33   plugin: entity:comment_type