You are here

d7_language_content_settings.yml in Drupal 8

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