d6_node.yml

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

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