d7_taxonomy_term.yml

Same filename in other branches
  1. 9 core/modules/taxonomy/migrations/d7_taxonomy_term.yml
  2. 8.9.x 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 and revision_id fields to allow incremental migrations.
  13. tid: tid
  14. revision_id: tid
  15. vid:
  16. plugin: migration_lookup
  17. migration: d7_taxonomy_vocabulary
  18. source: vid
  19. name: name
  20. 'description/value': description
  21. 'description/format': format
  22. weight: weight
  23. # Only attempt to stub real (non-zero) parents.
  24. parent_id:
  25. -
  26. plugin: skip_on_empty
  27. method: process
  28. source: parent
  29. -
  30. plugin: migration_lookup
  31. migration: d7_taxonomy_term
  32. parent:
  33. plugin: default_value
  34. default_value: 0
  35. source: '@parent_id'
  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.