29c439e98ae9608f024155a718321c99d3637967
[yaffs-website] / d7_comment.yml
1 id: d7_comment
2 label: Comments
3 audit: true
4 migration_tags:
5   - Drupal 7
6   - Content
7 class: Drupal\comment\Plugin\migrate\D7Comment
8 source:
9   plugin: d7_comment
10   constants:
11     entity_type: node
12 process:
13   # If you are using this file to build a custom migration consider removing
14   # the cid field to allow incremental migrations.
15   cid: cid
16   pid:
17     plugin: migration_lookup
18     migration: d7_comment
19     source: pid
20   entity_id:
21     -
22       plugin: migration_lookup
23       migration:
24         - d7_node
25         - d7_node_translation
26       source: nid
27     -
28       plugin: skip_on_empty
29       method: row
30   entity_type: 'constants/entity_type'
31   comment_type:
32     -
33       plugin: migration_lookup
34       source: node_type
35       migration: d7_comment_type
36     -
37       plugin: skip_on_empty
38       method: row
39   langcode: language
40   field_name: '@comment_type'
41   subject: subject
42   uid: uid
43   name: name
44   mail: mail
45   homepage: homepage
46   hostname: hostname
47   created: created
48   changed: changed
49   status: status
50   thread: thread
51   comment_body: comment_body
52 destination:
53   plugin: entity:comment
54 migration_dependencies:
55   required:
56     - d7_node
57     - d7_comment_type
58   optional:
59     - d7_node_translation