diff core/modules/comment/config/schema/comment.schema.yml @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 1fec387a4317
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/modules/comment/config/schema/comment.schema.yml	Wed Nov 29 16:09:58 2017 +0000
@@ -0,0 +1,114 @@
+# Schema for the configuration files of the Comment module.
+
+field.formatter.settings.comment_default:
+  type: mapping
+  label: 'Comment display format settings'
+  mapping:
+    view_mode:
+      type: string
+      label: 'The comment entity view mode to be used in this formatter'
+    pager_id:
+      type: integer
+      label: 'Pager ID'
+
+field.widget.settings.comment_default:
+  type: mapping
+  label: 'Comment display format settings'
+
+action.configuration.comment_publish_action:
+  type: action_configuration_default
+  label: 'Publish comment configuration'
+
+action.configuration.comment_save_action:
+  type: action_configuration_default
+  label: 'Save comment configuration'
+
+action.configuration.comment_unpublish_by_keyword_action:
+  type: mapping
+  label: 'Unpublish comment containing keyword(s) configuration'
+  mapping:
+    keywords:
+      type: sequence
+      label: 'Keywords'
+      sequence:
+        type: string
+        label: 'Keyword'
+
+action.configuration.comment_unpublish_action:
+  type: action_configuration_default
+  label: 'Unpublish comment configuration'
+
+action.configuration.comment_delete_action:
+  type: action_configuration_default
+  label: 'Delete comment configuration'
+
+comment.type.*:
+  type: config_entity
+  label: 'Comment type settings'
+  mapping:
+    id:
+      type: string
+      label: 'ID'
+    label:
+      type: label
+      label: 'Label'
+    target_entity_type_id:
+      type: string
+      label: 'Target Entity Type ID'
+    description:
+      type: text
+      label: 'Description'
+
+field.storage_settings.comment:
+  type: mapping
+  label: 'Comment settings'
+  mapping:
+    comment_type:
+      label: 'Comment type'
+      type: string
+
+field.value.comment:
+  type: mapping
+  label: 'Default value'
+  mapping:
+    status:
+      type: integer
+      label: 'Comment status'
+    cid:
+      type: integer
+      label: 'Last comment ID'
+    last_comment_timestamp:
+      type: integer
+      label: 'Last comment timestamp'
+    last_comment_name:
+      type: integer
+      label: 'Last comment name'
+    last_comment_uid:
+      type: integer
+      label: 'Last comment user ID'
+    comment_count:
+      type: integer
+      label: 'Number of comments'
+
+field.field_settings.comment:
+  type: mapping
+  label: 'Comment settings'
+  mapping:
+    default_mode:
+      type: integer
+      label: 'Threading'
+    per_page:
+      type: integer
+      label: 'Comments per page'
+    anonymous:
+      type: integer
+      label: 'Mode'
+    form_location:
+      type: boolean
+      label: ' Allow comment title'
+    preview:
+      type: integer
+      label: 'Preview comment'
+
+field.formatter.settings.comment_permalink:
+  type: field.formatter.settings.string