d7_taxonomy_term_translation.yml

Same filename in other branches
  1. 9 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. skip:
  12. -
  13. plugin: static_map
  14. source: i18n_mode
  15. default_value: 0
  16. map:
  17. 1: 0
  18. 2: 2
  19. 4: 4
  20. -
  21. plugin: skip_on_empty
  22. method: row
  23. # If you are using this file to build a custom migration consider removing
  24. # the tid field to allow incremental migrations.
  25. tid: tid
  26. langcode: language
  27. vid:
  28. plugin: migration_lookup
  29. migration: d7_taxonomy_vocabulary
  30. source: vid
  31. name: name
  32. 'description/value': description
  33. 'description/format': format
  34. weight: weight
  35. # Only attempt to stub real (non-zero) parents.
  36. parent_id:
  37. -
  38. plugin: skip_on_empty
  39. method: process
  40. source: parent
  41. -
  42. plugin: migration_lookup
  43. migration: d7_taxonomy_term
  44. parent:
  45. plugin: default_value
  46. default_value: 0
  47. source: '@parent_id'
  48. changed: timestamp
  49. destination:
  50. plugin: entity:taxonomy_term
  51. destination_module: content_translation
  52. translations: true
  53. migration_dependencies:
  54. required:
  55. - d7_taxonomy_term

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