d6_node.yml

Same filename in other branches
  1. 8.9.x core/modules/node/migrations/d6_node.yml
  2. 10 core/modules/node/migrations/d6_node.yml
  3. 11.x core/modules/node/migrations/d6_node.yml
core/modules/node/migrations/d6_node.yml

File

core/modules/node/migrations/d6_node.yml

View source
  1. id: d6_node
  2. label: Nodes
  3. audit: true
  4. migration_tags:
  5. - Drupal 6
  6. - Content
  7. deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
  8. source:
  9. plugin: d6_node
  10. process:
  11. # In D6, nodes always have a tnid, but it's zero for untranslated nodes.
  12. # We normalize it to equal the nid in that case.
  13. # @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
  14. # If you are using this file to build a custom migration consider removing
  15. # the nid and vid fields to allow incremental migrations.
  16. nid: tnid
  17. vid: vid
  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. # unmapped d6 fields.
  39. # tnid
  40. # translate
  41. # moderate
  42. # comment
  43. destination:
  44. plugin: entity:node
  45. migration_dependencies:
  46. required:
  47. - d6_user
  48. - d6_node_type
  49. - d6_node_settings
  50. - d6_filter_format
  51. optional:
  52. - d6_field_instance_widget_settings
  53. - d6_field_formatter_settings
  54. - d6_upload_field_instance

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