You are here

d6_language_content_settings.yml in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/language/migrations/d6_language_content_settings.yml
core/modules/language/migrations/d6_language_content_settings.yml

File

core/modules/language/migrations/d6_language_content_settings.yml
View source
  1. id: d6_language_content_settings
  2. label: Drupal 6 language content settings
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. source:
  7. plugin: d6_language_content_settings
  8. constants:
  9. target_type: 'node'
  10. process:
  11. # Ignore i18n_node_options_[node_type] options not available in Drupal 8,
  12. # i18n_required_node and i18n_newnode_current
  13. target_bundle: type
  14. target_entity_type_id: 'constants/target_type'
  15. default_langcode:
  16. -
  17. plugin: static_map
  18. source: language_content_type
  19. map:
  20. 0: NULL
  21. 1: 'current_interface'
  22. 2: 'current_interface'
  23. -
  24. plugin: skip_on_empty
  25. method: row
  26. language_alterable:
  27. plugin: static_map
  28. source: i18n_lock_node
  29. map:
  30. 0: true
  31. 1: false
  32. 'third_party_settings/content_translation/enabled':
  33. plugin: static_map
  34. source: language_content_type
  35. map:
  36. # In the case of being 0, it will be skipped. We are not actually setting
  37. # a null value.
  38. 0: NULL
  39. 1: false
  40. 2: true
  41. destination:
  42. plugin: entity:language_content_settings
  43. migration_dependencies:
  44. required:
  45. - d6_node_type
  46. - language