You are here

d6_node_complete.yml in Drupal 9

core/modules/node/migrations/d6_node_complete.yml

File

core/modules/node/migrations/d6_node_complete.yml
View source
  1. # Migrates all revisions and all revision translations.
  2. id: d6_node_complete
  3. label: Node Complete
  4. audit: true
  5. migration_tags:
  6. - Drupal 6
  7. - Content
  8. class: Drupal\node\Plugin\migrate\D6NodeTranslation
  9. deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
  10. source:
  11. plugin: d6_node_complete
  12. process:
  13. # If you are using this file to build a custom migration consider removing
  14. # the nid and vid fields to allow incremental migrations.
  15. # In D6, nodes always have a tnid, but it's zero for untranslated nodes.
  16. # We normalize it to equal the nid in that case.
  17. # @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
  18. nid: tnid
  19. vid: vid
  20. langcode:
  21. plugin: default_value
  22. source: language
  23. default_value: "und"
  24. title: title
  25. uid: node_uid
  26. status: status
  27. created: created
  28. changed: timestamp
  29. promote: promote
  30. sticky: sticky
  31. 'body/format':
  32. plugin: migration_lookup
  33. migration: d6_filter_format
  34. source: format
  35. 'body/value': body
  36. 'body/summary': teaser
  37. revision_uid: revision_uid
  38. revision_log: log
  39. revision_timestamp: timestamp
  40. content_translation_source: source_langcode
  41. # unmapped d6 fields.
  42. # translate
  43. # moderate
  44. # comment
  45. destination:
  46. plugin: entity_complete:node
  47. translations: true
  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