d7_node_complete.yml

Same filename in other branches
  1. 9 core/modules/node/migrations/d7_node_complete.yml
  2. 8.9.x core/modules/node/migrations/d7_node_complete.yml
  3. 10 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. # cspell:ignore tnid
  3. id: d7_node_complete
  4. label: Node complete
  5. audit: true
  6. migration_tags:
  7. - Drupal 7
  8. - Content
  9. class: Drupal\node\Plugin\migrate\D7NodeTranslation
  10. deriver: Drupal\node\Plugin\migrate\D7NodeDeriver
  11. source:
  12. plugin: d7_node_complete
  13. process:
  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. # In D7, nodes always have a tnid, but it's zero for untranslated nodes.
  17. # We normalize it to equal the nid in that case.
  18. # @see \Drupal\node\Plugin\migrate\source\d7\Node::prepareRow().
  19. nid: tnid
  20. vid: vid
  21. langcode:
  22. plugin: default_value
  23. source: language
  24. default_value: "und"
  25. title: title
  26. uid: node_uid
  27. status: status
  28. created: created
  29. changed: timestamp
  30. promote: promote
  31. sticky: sticky
  32. revision_uid: revision_uid
  33. revision_log: log
  34. revision_timestamp: timestamp
  35. content_translation_source: source_langcode
  36. # unmapped d6 fields.
  37. # translate
  38. # comment
  39. destination:
  40. plugin: entity_complete:node
  41. translations: true
  42. migration_dependencies:
  43. required:
  44. - d7_user
  45. - d7_node_type
  46. - language
  47. optional:
  48. - d7_field_instance
  49. - d7_comment_field_instance

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