migrate_plus.migration.d7_taxonomy_term_tags.yml 1.1 KB

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