d6_language_content_settings.yml

Same filename in other branches
  1. 9 core/modules/language/migrations/d6_language_content_settings.yml
  2. 8.9.x core/modules/language/migrations/d6_language_content_settings.yml
  3. 11.x 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. # cspell:ignore newnode
  2. id: d6_language_content_settings
  3. label: Drupal 6 language content settings
  4. migration_tags:
  5. - Drupal 6
  6. - Configuration
  7. source:
  8. plugin: d6_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. -
  25. plugin: skip_on_empty
  26. method: row
  27. language_alterable:
  28. plugin: static_map
  29. source: i18n_lock_node
  30. map:
  31. 0: true
  32. 1: false
  33. 'third_party_settings/content_translation/enabled':
  34. plugin: static_map
  35. source: language_content_type
  36. map:
  37. # In the case of being 0, it will be skipped. We are not actually setting
  38. # a null value.
  39. 0: NULL
  40. 1: false
  41. 2: true
  42. destination:
  43. plugin: entity:language_content_settings
  44. migration_dependencies:
  45. required:
  46. - d6_node_type
  47. - language

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