d6_node_translation.yml 1.2 KB

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