comment.schema.yml

Same filename in other branches
  1. 9 core/modules/comment/config/schema/comment.schema.yml
  2. 10 core/modules/comment/config/schema/comment.schema.yml
  3. 11.x core/modules/comment/config/schema/comment.schema.yml
core/modules/comment/config/schema/comment.schema.yml

File

core/modules/comment/config/schema/comment.schema.yml

View source
  1. # Schema for the configuration files of the Comment module.
  2. comment.settings:
  3. type: config_object
  4. label: 'Comment settings'
  5. mapping:
  6. log_ip_addresses:
  7. type: boolean
  8. label: 'Whether to log IP addresses with comments or not.'
  9. field.formatter.settings.comment_default:
  10. type: mapping
  11. label: 'Comment display format settings'
  12. mapping:
  13. view_mode:
  14. type: string
  15. label: 'The comment entity view mode to be used in this formatter'
  16. pager_id:
  17. type: integer
  18. label: 'Pager ID'
  19. field.widget.settings.comment_default:
  20. type: mapping
  21. label: 'Comment display format settings'
  22. # @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0.
  23. # @see https://www.drupal.org/node/2919303
  24. action.configuration.comment_publish_action:
  25. type: action_configuration_default
  26. label: 'Publish comment configuration'
  27. # @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0.
  28. # @see https://www.drupal.org/node/2919303
  29. action.configuration.comment_save_action:
  30. type: action_configuration_default
  31. label: 'Save comment configuration'
  32. action.configuration.comment_unpublish_by_keyword_action:
  33. type: mapping
  34. label: 'Unpublish comment containing keyword(s) configuration'
  35. mapping:
  36. keywords:
  37. type: sequence
  38. label: 'Keywords'
  39. sequence:
  40. type: string
  41. label: 'Keyword'
  42. # @deprecated in Drupal 8.5.x, to be removed before Drupal 9.0.0.
  43. # @see https://www.drupal.org/node/2919303
  44. action.configuration.comment_unpublish_action:
  45. type: action_configuration_default
  46. label: 'Unpublish comment configuration'
  47. # @deprecated in Drupal 8.6.x, to be removed before Drupal 9.0.0.
  48. # @see https://www.drupal.org/node/2934349
  49. action.configuration.comment_delete_action:
  50. type: action_configuration_default
  51. label: 'Delete comment configuration'
  52. comment.type.*:
  53. type: config_entity
  54. label: 'Comment type settings'
  55. mapping:
  56. id:
  57. type: string
  58. label: 'ID'
  59. label:
  60. type: label
  61. label: 'Label'
  62. target_entity_type_id:
  63. type: string
  64. label: 'Target Entity Type ID'
  65. description:
  66. type: text
  67. label: 'Description'
  68. field.storage_settings.comment:
  69. type: mapping
  70. label: 'Comment settings'
  71. mapping:
  72. comment_type:
  73. label: 'Comment type'
  74. type: string
  75. field.value.comment:
  76. type: mapping
  77. label: 'Default value'
  78. mapping:
  79. status:
  80. type: integer
  81. label: 'Comment status'
  82. cid:
  83. type: integer
  84. label: 'Last comment ID'
  85. last_comment_timestamp:
  86. type: integer
  87. label: 'Last comment timestamp'
  88. last_comment_name:
  89. type: integer
  90. label: 'Last comment name'
  91. last_comment_uid:
  92. type: integer
  93. label: 'Last comment user ID'
  94. comment_count:
  95. type: integer
  96. label: 'Number of comments'
  97. field.field_settings.comment:
  98. type: mapping
  99. label: 'Comment settings'
  100. mapping:
  101. default_mode:
  102. type: integer
  103. label: 'Threading'
  104. per_page:
  105. type: integer
  106. label: 'Comments per page'
  107. anonymous:
  108. type: integer
  109. label: 'Mode'
  110. form_location:
  111. type: boolean
  112. label: 'Allow comment title'
  113. preview:
  114. type: integer
  115. label: 'Preview comment'
  116. field.formatter.settings.comment_permalink:
  117. type: field.formatter.settings.string

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