d7_node_complete.yml

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

File

core/modules/node/migrations/d7_node_complete.yml

View source
  1. # Migrates all revisions and all revision translations.
  2. id: d7_node_complete
  3. label: Node complete
  4. audit: true
  5. migration_tags:
  6. - Drupal 7
  7. - Content
  8. class: Drupal\node\Plugin\migrate\D7NodeTranslation
  9. deriver: Drupal\node\Plugin\migrate\D7NodeDeriver
  10. source:
  11. plugin: d7_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 D7, 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\d7\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. revision_uid: revision_uid
  32. revision_log: log
  33. revision_timestamp: timestamp
  34. content_translation_source: source_langcode
  35. # unmapped d6 fields.
  36. # translate
  37. # comment
  38. destination:
  39. plugin: entity_complete:node
  40. translations: true
  41. migration_dependencies:
  42. required:
  43. - d7_user
  44. - d7_node_type
  45. - language
  46. optional:
  47. - d7_field_instance
  48. - d7_comment_field_instance

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