d6_language_content_comment_settings.yml

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

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