3540ab69d04becce3733b405abb4982f0945bbad
[yaffs-website] / web / modules / contrib / migrate_plus / migrate_example / migrations / beer_comment.yml
1 # Migration configuration for beer comments. No new concepts here.
2 id: beer_comment
3 label: Comments on beers
4 migration_group: beer
5 source:
6   plugin: beer_comment
7 destination:
8   plugin: entity:comment
9 process:
10   pid:
11     plugin: migration_lookup
12     migration: beer_comment
13     source: cid_parent
14   entity_id:
15     plugin: migration_lookup
16     migration: beer_node
17     source: bid
18   entity_type:
19     plugin: default_value
20     default_value: node
21   field_name:
22     plugin: default_value
23     default_value: field_comments
24   comment_type:
25     plugin: default_value
26     default_value: node_comments
27   subject: subject
28   uid:
29     plugin: migration_lookup
30     migration: beer_user
31     source: aid
32   name: name
33   mail: mail
34   status:
35     plugin: default_value
36     default_value: 1
37   'comment_body/value': body
38 migration_dependencies:
39   required:
40     - beer_node
41     - beer_user
42 dependencies:
43   enforced:
44     module:
45       - migrate_example