d6_node_complete.yml

Same filename in other branches
  1. 9 core/modules/node/migrations/d6_node_complete.yml
  2. 8.9.x core/modules/node/migrations/d6_node_complete.yml
  3. 11.x core/modules/node/migrations/d6_node_complete.yml
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. # cspell:ignore tnid
  3. id: d6_node_complete
  4. label: Node Complete
  5. audit: true
  6. migration_tags:
  7. - Drupal 6
  8. - Content
  9. class: Drupal\node\Plugin\migrate\D6NodeTranslation
  10. deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
  11. source:
  12. plugin: d6_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 D6, 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\d6\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. 'body/format':
  33. plugin: migration_lookup
  34. migration: d6_filter_format
  35. source: format
  36. 'body/value': body
  37. 'body/summary': teaser
  38. revision_uid: revision_uid
  39. revision_log: log
  40. revision_timestamp: timestamp
  41. content_translation_source: source_langcode
  42. # unmapped d6 fields.
  43. # translate
  44. # moderate
  45. # comment
  46. destination:
  47. plugin: entity_complete:node
  48. translations: true
  49. migration_dependencies:
  50. required:
  51. - d6_user
  52. - d6_node_type
  53. - d6_node_settings
  54. - d6_filter_format
  55. - language
  56. optional:
  57. - d6_field_instance_widget_settings
  58. - d6_field_formatter_settings
  59. - d6_upload_field_instance

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