d7_language_content_settings.yml

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

File

core/modules/language/migrations/d7_language_content_settings.yml

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

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