d6_language_content_comment_settings.yml

Same filename in other branches
  1. 9 core/modules/content_translation/migrations/d6_language_content_comment_settings.yml
  2. 8.9.x core/modules/content_translation/migrations/d6_language_content_comment_settings.yml
  3. 11.x core/modules/content_translation/migrations/d6_language_content_comment_settings.yml
core/modules/content_translation/migrations/d6_language_content_comment_settings.yml

File

core/modules/content_translation/migrations/d6_language_content_comment_settings.yml

View source
  1. # cspell:ignore newnode
  2. id: d6_language_content_comment_settings
  3. label: Drupal 6 language content comment settings
  4. migration_tags:
  5. - Drupal 6
  6. - Configuration
  7. - Multilingual
  8. source:
  9. plugin: d6_language_content_settings
  10. constants:
  11. target_type: comment
  12. id_prefix: comment_node_
  13. label_suffix: comment
  14. process:
  15. # Ignore i18n_node_options_[node_type] options not available in Drupal 8,
  16. # i18n_required_node and i18n_newnode_current
  17. target_bundle:
  18. -
  19. plugin: concat
  20. source:
  21. - constants/id_prefix
  22. - type
  23. -
  24. plugin: static_map
  25. bypass: true
  26. # The Forum module provides its own comment type (comment_forum), which we
  27. # want to reuse if it exists.
  28. map:
  29. comment_node_forum: comment_forum
  30. target_entity_type_id: constants/target_type
  31. default_langcode:
  32. -
  33. plugin: static_map
  34. source: language_content_type
  35. map:
  36. 0: site_default
  37. 1: current_interface
  38. 2: current_interface
  39. -
  40. plugin: skip_on_empty
  41. method: row
  42. language_alterable:
  43. plugin: static_map
  44. source: language_content_type
  45. map:
  46. 0: false
  47. 1: true
  48. 2: true
  49. 'third_party_settings/content_translation/enabled':
  50. plugin: static_map
  51. source: language_content_type
  52. map:
  53. # In the case of being 0, it will be skipped. We are not actually setting
  54. # a null value.
  55. 0: NULL
  56. 1: false
  57. 2: false
  58. destination:
  59. plugin: entity:language_content_settings
  60. migration_dependencies:
  61. required:
  62. - language
  63. - d6_comment_type

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.