d7_language_content_settings.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. content_translation_update_definitions:
  47. - node
  48. migration_dependencies:
  49. required:
  50. - d7_node_type