56d0459a81266cc418ab3a18e784f7c7068b63a8
[yaffs-website] / web / core / modules / node / migration_templates / d6_node.yml
1 id: d6_node
2 label: Nodes
3 migration_tags:
4   - Drupal 6
5 deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
6 source:
7   plugin: d6_node
8 process:
9   # In D6, nodes always have a tnid, but it's zero for untranslated nodes.
10   # We normalize it to equal the nid in that case.
11   # @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
12   # If you are using this file to build a custom migration consider removing
13   # the nid and vid fields to allow incremental migrations.
14   nid: tnid
15   vid: vid
16   langcode:
17     plugin: default_value
18     source: language
19     default_value: "und"
20   title: title
21   uid: node_uid
22   status: status
23   created: created
24   changed: changed
25   promote: promote
26   sticky: sticky
27   'body/format':
28     plugin: migration_lookup
29     migration: d6_filter_format
30     source: format
31   'body/value': body
32   'body/summary': teaser
33   revision_uid: revision_uid
34   revision_log: log
35   revision_timestamp: timestamp
36
37 #  unmapped d6 fields.
38 #  tnid
39 #  translate
40 #  moderate
41 #  comment
42
43 destination:
44   plugin: entity:node
45 migration_dependencies:
46   required:
47     - d6_user
48     - d6_node_type
49     - d6_node_settings
50     - d6_filter_format
51   optional:
52     - d6_field_instance_widget_settings
53     - d6_field_formatter_settings
54     - d6_upload_field_instance