summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2013-03-09 22:45:35 (GMT)
committerwebchick2013-03-09 22:45:35 (GMT)
commit26c13e7916b71f792680ee352ab2443e7ee8aa74 (patch)
treee3dbc421f947e2e4f72d47341381cb2fa5e43b40
parente5ccdb401f779d99cfcd294da03f0bb877e62360 (diff)
Issue #1919174 by vijaycs85, mr.york: Create configuration schemas for filter module.
-rw-r--r--core/modules/filter/config/schema/filter.schema.yml46
-rw-r--r--core/modules/system/config/schema/system.data_types.schema.yml12
2 files changed, 58 insertions, 0 deletions
diff --git a/core/modules/filter/config/schema/filter.schema.yml b/core/modules/filter/config/schema/filter.schema.yml
new file mode 100644
index 0000000..a8e3db4
--- /dev/null
+++ b/core/modules/filter/config/schema/filter.schema.yml
@@ -0,0 +1,46 @@
+# Schema for the configuration files of the Filter module.
+
+filter.settings:
+ type: mapping
+ label: 'Filter settings'
+ mapping:
+ fallback_format:
+ type: string
+ label: 'Fallback text format'
+ always_show_fallback_choice:
+ type: boolean
+ label: 'Always show fallback choice'
+
+filter.format.*:
+ type: mapping
+ label: 'Text formats'
+ mapping:
+ format:
+ type: string
+ label: 'Machine name'
+ name:
+ type: string
+ label: 'Name'
+ status:
+ type: boolean
+ label: 'Enabled'
+ weight:
+ type: integer
+ label: 'Weight'
+ roles:
+ type: sequence
+ label: 'Roles'
+ sequence:
+ - type: string
+ label: 'Role'
+ cache:
+ type: boolean
+ label: 'Cache'
+ filters:
+ type: sequence
+ label: 'Enabled filters'
+ sequence:
+ - type: filter
+ langcode:
+ type: string
+ label: 'Language'
diff --git a/core/modules/system/config/schema/system.data_types.schema.yml b/core/modules/system/config/schema/system.data_types.schema.yml
index ac9bc78..422245b 100644
--- a/core/modules/system/config/schema/system.data_types.schema.yml
+++ b/core/modules/system/config/schema/system.data_types.schema.yml
@@ -61,3 +61,15 @@ mail:
"body":
type: text
label: "Body"
+
+# Filter with module and status.
+filter:
+ type: mapping
+ label: 'Filter'
+ mapping:
+ module:
+ type: string
+ label: 'Module'
+ status:
+ type: boolean
+ label: 'Enabled'