You are here

d6_language_content_taxonomy_vocabulary_settings.yml in Drupal 10

core/modules/language/migrations/d6_language_content_taxonomy_vocabulary_settings.yml

File

core/modules/language/migrations/d6_language_content_taxonomy_vocabulary_settings.yml
View source
  1. id: d6_language_content_taxonomy_vocabulary_settings
  2. label: Drupal 6 language taxonomy vocabulary settings
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. source:
  7. plugin: d6_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: d6_taxonomy_vocabulary
  16. source: vid
  17. -
  18. plugin: skip_on_empty
  19. method: row
  20. # State is the value in the i18ntaxonomy_vocabulary array defined as:
  21. # 0: No multilingual options.
  22. # 1: Localizable terms. Run through the localization system.
  23. # 2: Predefined language for a vocabulary and its terms.
  24. # 3: Per-language terms, translatable (referencing terms with different
  25. # languages) but not localizable.
  26. language_alterable:
  27. plugin: static_map
  28. source: state
  29. map:
  30. 0: false
  31. 1: true
  32. 2: false
  33. 3: true
  34. 'third_party_settings/content_translation/enabled':
  35. plugin: static_map
  36. source: state
  37. map:
  38. 0: false
  39. 1: true
  40. 2: false
  41. 3: false
  42. target_entity_type_id: 'constants/target_type'
  43. default_langcode:
  44. plugin: default_value
  45. default_value: site_default
  46. source: language
  47. destination:
  48. plugin: entity:language_content_settings
  49. migration_dependencies:
  50. required:
  51. - d6_taxonomy_vocabulary
  52. - language