migrate_plus.migration.d7_taxonomy_term_tags.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_tags
  12. bundle: tag_libres
  13. destination:
  14. plugin: entity:taxonomy_term
  15. process:
  16. # If you are using this file to build a custom migration consider removing
  17. # the tid field to allow incremental migrations.
  18. # tid: tid
  19. vid:
  20. plugin: default_value
  21. default_value: tags
  22. name: name
  23. 'description/value': description
  24. 'description/format': format
  25. weight: weight
  26. # Only attempt to stub real (non-zero) parents.
  27. parent_id:
  28. -
  29. plugin: skip_on_empty
  30. method: process
  31. source: parent
  32. -
  33. plugin: migration_lookup
  34. migration: d7_taxonomy_term_tags
  35. parent:
  36. plugin: default_value
  37. default_value: 0
  38. source: '@parent_id'
  39. forum_container: is_container
  40. changed: timestamp
  41. #synonyms
  42. field_synonyms: synonyms
  43. # TODO translation