You are here

uc6_language_content_settings.yml in Commerce Migrate 3.1.x

modules/ubercart/migrations/uc6_language_content_settings.yml

File

modules/ubercart/migrations/uc6_language_content_settings.yml
View source
  1. id: uc6_language_content_settings
  2. label: Ubercart language content settings
  3. migration_tags:
  4. - Drupal 6
  5. - Ubercart
  6. - Configuration
  7. source:
  8. plugin: d6_language_content_settings
  9. constants:
  10. target_type: 'commerce_product'
  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. content_translation_update_definitions:
  45. - commerce_product
  46. destination_module: language
  47. migration_dependencies:
  48. required:
  49. - uc6_product_type