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. 10 core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml
  3. 11.x 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. id: d7_language_content_taxonomy_vocabulary_settings
  2. label: Drupal 7 language taxonomy vocabulary settings
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. source:
  7. plugin: d7_language_content_settings_taxonomy_vocabulary
  8. constants:
  9. target_type: 'taxonomy_term'
  10. default_langcode: 'site_default'
  11. process:
  12. target_bundle:
  13. -
  14. plugin: migration_lookup
  15. migration: d7_taxonomy_vocabulary
  16. source: vid
  17. -
  18. plugin: skip_on_empty
  19. method: row
  20. # State is the value in the i18n_mode column of taxonomy_vocabulary table
  21. # 0: No multilingual options.
  22. # 1: Localize. Localizable object. Run through the localization system
  23. # 2: Fixed Language. Predefined language for this object and all related ones
  24. # 4: Translate. Multilingual objects, translatable but not localizable.
  25. # 5: Objects are translatable (if they have language or localizable if not)
  26. # Note: the Drupal 6 Per-language value (3) changed to 4 in Drupal 7.
  27. language_alterable:
  28. plugin: static_map
  29. source: i18n_mode
  30. map:
  31. 0: false
  32. 1: true
  33. 2: false
  34. 4: true
  35. 5: true
  36. 'third_party_settings/content_translation/enabled':
  37. plugin: static_map
  38. source: i18n_mode
  39. map:
  40. 0: false
  41. 1: true
  42. 2: false
  43. 4: false
  44. 5: true
  45. target_entity_type_id: 'constants/target_type'
  46. default_langcode:
  47. plugin: default_value
  48. default_value: site_default
  49. source: language
  50. destination:
  51. plugin: entity:language_content_settings
  52. migration_dependencies:
  53. required:
  54. - d7_taxonomy_vocabulary

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