You are here

d7_language_content_comment_settings.yml in Drupal 10

core/modules/content_translation/migrations/d7_language_content_comment_settings.yml

File

core/modules/content_translation/migrations/d7_language_content_comment_settings.yml
View source
  1. id: d7_language_content_comment_settings
  2. label: Drupal 7 language content comment settings
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. - Multilingual
  7. source:
  8. plugin: d7_language_content_settings
  9. constants:
  10. target_type: comment
  11. process:
  12. target_bundle:
  13. -
  14. plugin: migration_lookup
  15. migration: d7_comment_type
  16. no_stub: true
  17. source:
  18. - type
  19. -
  20. plugin: skip_on_empty
  21. method: row
  22. target_entity_type_id: constants/target_type
  23. default_langcode:
  24. -
  25. plugin: static_map
  26. source: language_content_type
  27. map:
  28. 0: site_default
  29. 1: current_interface
  30. 2: current_interface
  31. 4: current_interface
  32. default_value: NULL
  33. -
  34. plugin: skip_on_empty
  35. method: row
  36. language_alterable:
  37. plugin: static_map
  38. source: language_content_type
  39. map:
  40. 0: false
  41. 1: true
  42. 2: true
  43. 4: true
  44. third_party_settings/content_translation/enabled:
  45. plugin: content_translation_enabled_setting
  46. source:
  47. - language_content_type
  48. - entity_translation_entity_types
  49. - constants/target_type
  50. destination:
  51. plugin: entity:language_content_settings
  52. migration_dependencies:
  53. required:
  54. - language
  55. - d7_comment_type