From d5580c8d4af7c9532004b359dca14ede90604cdd Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Wed, 14 Feb 2024 16:18:00 +0000 Subject: [PATCH] Issue #3395562 by Wim Leers, Eli-T, borisson_, nireneko, claudiu.cristea, marvil07, smustgrave: Add validation constraints to filter.settings --- core/modules/filter/config/schema/filter.schema.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/modules/filter/config/schema/filter.schema.yml b/core/modules/filter/config/schema/filter.schema.yml index f3d13c7bfdc9..0f6695c3dfee 100644 --- a/core/modules/filter/config/schema/filter.schema.yml +++ b/core/modules/filter/config/schema/filter.schema.yml @@ -3,10 +3,18 @@ filter.settings: type: config_object label: 'Filter settings' + constraints: + FullyValidatable: ~ mapping: + # @todo Simple config cannot have dependencies on any other config. Remove this in https://www.drupal.org/project/drupal/issues/1932544. fallback_format: - type: string + type: machine_name label: 'Fallback text format' + # Filter format machine names can be up to 255 characters. + # @see \Drupal\filter\FilterFormatFormBase::form() + constraints: + Length: + max: 255 always_show_fallback_choice: type: boolean label: 'Always show fallback choice' -- GitLab