d7_taxonomy_term.yml

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

File

core/modules/taxonomy/migrations/d7_taxonomy_term.yml

View source
  1. id: d7_taxonomy_term
  2. label: Taxonomy terms
  3. audit: true
  4. migration_tags:
  5. - Drupal 7
  6. - Content
  7. deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
  8. source:
  9. plugin: d7_taxonomy_term
  10. process:
  11. # If you are using this file to build a custom migration consider removing
  12. # the tid field to allow incremental migrations.
  13. tid: tid
  14. vid:
  15. plugin: migration_lookup
  16. migration: d7_taxonomy_vocabulary
  17. source: vid
  18. name: name
  19. 'description/value': description
  20. 'description/format': format
  21. weight: weight
  22. # Only attempt to stub real (non-zero) parents.
  23. parent_id:
  24. -
  25. plugin: skip_on_empty
  26. method: process
  27. source: parent
  28. -
  29. plugin: migration_lookup
  30. migration: d7_taxonomy_term
  31. parent:
  32. plugin: default_value
  33. default_value: 0
  34. source: '@parent_id'
  35. forum_container: is_container
  36. changed: timestamp
  37. langcode: language
  38. destination:
  39. plugin: entity:taxonomy_term
  40. migration_dependencies:
  41. required:
  42. - d7_taxonomy_vocabulary
  43. optional:
  44. - d7_field_instance

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