d7_taxonomy_term_translation.yml

Same filename in other branches
  1. 8.9.x core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml
  2. 10 core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml
  3. 11.x core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml
core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml

File

core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml

View source
  1. id: d7_taxonomy_term_translation
  2. label: Taxonomy terms
  3. migration_tags:
  4. - Drupal 7
  5. - Content
  6. - Multilingual
  7. source:
  8. plugin: d7_taxonomy_term_translation
  9. translations: true
  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. langcode: language
  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. destination:
  38. plugin: entity:taxonomy_term
  39. destination_module: content_translation
  40. translations: true
  41. migration_dependencies:
  42. required:
  43. - language
  44. - d7_taxonomy_term

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