d7_language_content_taxonomy_vocabulary_settings.yml

Same filename in other branches
  1. 9 core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml
  2. 8.9.x core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml
  3. 10 core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml
core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml

File

core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml

View source
  1. # cspell:ignore localizable
  2. id: d7_language_content_taxonomy_vocabulary_settings
  3. label: Drupal 7 language taxonomy vocabulary settings
  4. migration_tags:
  5. - Drupal 7
  6. - Configuration
  7. source:
  8. plugin: d7_language_content_settings_taxonomy_vocabulary
  9. constants:
  10. target_type: 'taxonomy_term'
  11. default_langcode: 'site_default'
  12. process:
  13. target_bundle:
  14. -
  15. plugin: migration_lookup
  16. migration: d7_taxonomy_vocabulary
  17. source: vid
  18. -
  19. plugin: skip_on_empty
  20. method: row
  21. _skip:
  22. -
  23. plugin: concat
  24. source:
  25. - 'constants/target_type'
  26. - '@target_bundle'
  27. delimiter: .
  28. -
  29. plugin: migration_lookup
  30. migration: d7_entity_translation_settings
  31. -
  32. plugin: callback
  33. callable: is_null
  34. -
  35. plugin: skip_on_empty
  36. method: row
  37. # State is the value in the i18n_mode column of taxonomy_vocabulary table
  38. # 0: No multilingual options.
  39. # 1: Localize. Localizable object. Run through the localization system
  40. # 2: Fixed Language. Predefined language for this object and all related ones
  41. # 4: Translate. Multilingual objects, translatable but not localizable.
  42. # 5: Objects are translatable (if they have language or localizable if not)
  43. # Note: the Drupal 6 Per-language value (3) changed to 4 in Drupal 7.
  44. language_alterable:
  45. plugin: static_map
  46. source: i18n_mode
  47. map:
  48. 0: false
  49. 1: true
  50. 2: false
  51. 4: true
  52. 5: true
  53. 'third_party_settings/content_translation/enabled':
  54. plugin: static_map
  55. source: i18n_mode
  56. map:
  57. 0: false
  58. 1: true
  59. 2: false
  60. 4: false
  61. 5: true
  62. target_entity_type_id: 'constants/target_type'
  63. default_langcode:
  64. plugin: default_value
  65. default_value: site_default
  66. source: language
  67. destination:
  68. plugin: entity:language_content_settings
  69. migration_dependencies:
  70. required:
  71. - language
  72. - d7_taxonomy_vocabulary
  73. optional:
  74. - d7_language_content_settings
  75. - d7_entity_translation_settings

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