You are here

d7_language_content_comment_settings.yml in Drupal 8

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. id_prefix: comment_node_
  12. label_suffix: comment
  13. process:
  14. target_bundle:
  15. -
  16. plugin: concat
  17. source:
  18. - constants/id_prefix
  19. - type
  20. -
  21. plugin: static_map
  22. bypass: true
  23. # The Forum module provides its own comment type (comment_forum), which we
  24. # want to reuse if it exists.
  25. map:
  26. comment_node_forum: comment_forum
  27. target_entity_type_id: constants/target_type
  28. default_langcode:
  29. -
  30. plugin: static_map
  31. source: language_content_type
  32. map:
  33. 0: site_default
  34. 1: current_interface
  35. 2: current_interface
  36. 4: current_interface
  37. default_value: NULL
  38. -
  39. plugin: skip_on_empty
  40. method: row
  41. language_alterable:
  42. plugin: static_map
  43. source: language_content_type
  44. map:
  45. 0: false
  46. 1: true
  47. 2: true
  48. 4: true
  49. third_party_settings/content_translation/enabled:
  50. plugin: content_translation_enabled_setting
  51. source:
  52. - language_content_type
  53. - entity_translation_entity_types
  54. - constants/target_type
  55. destination:
  56. plugin: entity:language_content_settings
  57. migration_dependencies:
  58. required:
  59. - d7_comment_type