38e6870162e4a153362b5de867a243381f5dfc26
[yaffs-website] / web / core / modules / content_translation / migrations / d6_node_translation.yml
1 id: d6_node_translation
2 label: Node translations
3 migration_tags:
4   - Drupal 6
5   - translation
6   - Content
7   - Multilingual
8 class: Drupal\node\Plugin\migrate\D6NodeTranslation
9 deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
10 source:
11   plugin: d6_node
12   translations: true
13 process:
14   # If you are using this file to build a custom migration consider removing
15   # the nid field to allow incremental migrations.
16   nid: tnid
17   type: type
18   langcode:
19     plugin: default_value
20     source: language
21     default_value: "und"
22   title: title
23   uid: node_uid
24   status: status
25   created: created
26   changed: changed
27   promote: promote
28   sticky: sticky
29   'body/format':
30     plugin: migration_lookup
31     migration: d6_filter_format
32     source: format
33   'body/value': body
34   'body/summary': teaser
35   revision_uid: revision_uid
36   revision_log: log
37   revision_timestamp: timestamp
38   content_translation_source: source_langcode
39
40 #  unmapped d6 fields.
41 #  translate
42 #  moderate
43 #  comment
44
45 destination:
46   plugin: entity:node
47   translations: true
48   destination_module: content_translation
49 migration_dependencies:
50   required:
51     - d6_user
52     - d6_node_type
53     - d6_node_settings
54     - d6_filter_format
55     - language
56   optional:
57     - d6_field_instance_widget_settings
58     - d6_field_formatter_settings
59     - d6_upload_field_instance