d6_taxonomy_term.yml

Same filename in other branches
  1. 9 core/modules/taxonomy/migrations/d6_taxonomy_term.yml
  2. 8.9.x core/modules/taxonomy/migrations/d6_taxonomy_term.yml
  3. 11.x core/modules/taxonomy/migrations/d6_taxonomy_term.yml
core/modules/taxonomy/migrations/d6_taxonomy_term.yml

File

core/modules/taxonomy/migrations/d6_taxonomy_term.yml

View source
  1. id: d6_taxonomy_term
  2. label: Taxonomy terms
  3. audit: true
  4. migration_tags:
  5. - Drupal 6
  6. - Content
  7. source:
  8. plugin: d6_taxonomy_term
  9. process:
  10. # If you are using this file to build a custom migration consider removing
  11. # the tid and revision_id fields to allow incremental migrations.
  12. tid: tid
  13. revision_id: tid
  14. vid:
  15. plugin: migration_lookup
  16. migration: d6_taxonomy_vocabulary
  17. source: vid
  18. name: name
  19. description: description
  20. weight: weight
  21. # Only attempt to stub real (non-zero) parents.
  22. parent_id:
  23. -
  24. plugin: skip_on_empty
  25. method: process
  26. source: parent
  27. -
  28. plugin: migration_lookup
  29. migration: d6_taxonomy_term
  30. parent:
  31. plugin: default_value
  32. default_value: 0
  33. source: '@parent_id'
  34. changed: timestamp
  35. destination:
  36. plugin: entity:taxonomy_term
  37. migration_dependencies:
  38. required:
  39. - d6_taxonomy_vocabulary

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