d6_node_translation.yml

Same filename in other branches
  1. 9 core/modules/content_translation/migrations/d6_node_translation.yml
  2. 8.9.x core/modules/content_translation/migrations/d6_node_translation.yml
  3. 11.x core/modules/content_translation/migrations/d6_node_translation.yml
core/modules/content_translation/migrations/d6_node_translation.yml

File

core/modules/content_translation/migrations/d6_node_translation.yml

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.