Interim commit.
[yaffs-website] / web / core / modules / comment / migration_templates / d6_comment.yml
1 id: d6_comment
2 label: Comments
3 migration_tags:
4   - Drupal 6
5 source:
6   plugin: d6_comment
7   constants:
8     entity_type: node
9 process:
10   # If you are using this file to build a custom migration consider removing
11   # the cid field to allow incremental migrations.
12   cid: cid
13   pid:
14     plugin: migration_lookup
15     migration: d6_comment
16     source: pid
17   entity_id: nid
18   entity_type: 'constants/entity_type'
19   # field_name & comment_type is calculated in
20   # \Drupal\migrate_drupal\Plugin\migrate\source\d6\Comment::prepareRow()
21   field_name: field_name
22   comment_type: comment_type
23   subject: subject
24   uid: uid
25   name: name
26   mail: mail
27   homepage: homepage
28   hostname: hostname
29   created: timestamp
30   changed: timestamp
31   status: status #In D6, published=0. We reverse the value in prepareRow.
32   thread: thread
33   'comment_body/value': comment
34   'comment_body/format':
35     plugin: migration_lookup
36     migration: d6_filter_format
37     source: format
38 destination:
39   plugin: entity:comment
40 migration_dependencies:
41   required:
42     - d6_node
43     - d6_comment_type
44     - d6_comment_entity_display
45     - d6_comment_entity_form_display
46     - d6_user
47     - d6_filter_format