d6_node_translation.yml 1.22 KB
Newer Older
1 2 3 4 5 6 7 8
id: d6_node_translation
label: Node translations
migration_tags:
  - Drupal 6
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
source:
  plugin: d6_node
  translations: true
9
  source_module: translation
10
process:
11 12
  # If you are using this file to build a custom migration consider removing
  # the nid field to allow incremental migrations.
13 14 15 16 17 18 19 20 21 22 23 24 25 26
  nid: tnid
  type: type
  langcode:
    plugin: default_value
    source: language
    default_value: "und"
  title: title
  uid: node_uid
  status: status
  created: created
  changed: changed
  promote: promote
  sticky: sticky
  'body/format':
27
    plugin: migration_lookup
28 29 30 31 32 33 34
    migration: d6_filter_format
    source: format
  'body/value': body
  'body/summary': teaser
  revision_uid: revision_uid
  revision_log: log
  revision_timestamp: timestamp
35
  content_translation_source: source_langcode
36 37 38 39 40 41 42 43 44

#  unmapped d6 fields.
#  translate
#  moderate
#  comment

destination:
  plugin: entity:node
  translations: true
45
  destination_module: content_translation
46 47 48 49 50 51 52 53 54 55 56
migration_dependencies:
  required:
    - d6_user
    - d6_node_type
    - d6_node_settings
    - d6_filter_format
    - language
  optional:
    - d6_field_instance_widget_settings
    - d6_field_formatter_settings
    - d6_upload_field_instance