migrate_plus.migration.d7_taxonomy_term_thesaurus.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. id: d7_taxonomy_term_thesaurus
  2. label: Taxonomy terms Thesaurus
  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_thesaurus
  12. bundle: onthologie
  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: thesaurus
  22. # langcode: language
  23. name: name
  24. 'description/value': description
  25. 'description/format': format
  26. weight: weight
  27. # Only attempt to stub real (non-zero) parents.
  28. parent_id:
  29. -
  30. plugin: skip_on_empty
  31. method: process
  32. source: parent
  33. -
  34. plugin: migration_lookup
  35. migration: d7_taxonomy_term_thesaurus
  36. parent:
  37. plugin: default_value
  38. default_value: 0
  39. source: '@parent_id'
  40. changed: timestamp
  41. #synonyms
  42. field_synonyms: synonyms_synonym
  43. # used on advanced search
  44. field_used_on_advanced_search: field_used_on_advanced_search
  45. # TODO translation