From 26c13e7916b71f792680ee352ab2443e7ee8aa74 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Sat, 9 Mar 2013 14:45:35 -0800 Subject: [PATCH] Issue #1919174 by vijaycs85, mr.york: Create configuration schemas for filter module. --- .../filter/config/schema/filter.schema.yml | 46 +++++++++++++++++++ .../schema/system.data_types.schema.yml | 12 +++++ 2 files changed, 58 insertions(+) create mode 100644 core/modules/filter/config/schema/filter.schema.yml 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 000000000000..a8e3db4c41ab --- /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 ac9bc78f2f89..422245b7cf7f 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' -- GitLab