Add ConfigSchemaChecker to development.services.yml

Created on 29 November 2015, over 9 years ago
Updated 6 April 2025, 18 days ago

Problem/Motivation

We have a nice ConfigSchemaChecker in core which we use for testing. We do not enable it by default (i.e. "on production") for performance reasons and because schema violations are generally developer errors and shouldn't occur on stable systems.

However, for local development environments, it would be great to enable ConfigSchemaChecker.

Proposed resolution

We already have a mechanism for standardizing best-practice development settings: example.settings.local.php and development.services.yml.

Let's add \Drupal\Core\Config\Testing\ConfigSchemaChecker to development.services.yml. Consider adding a todo to move it out of the Testing namespace in D9.

And decide on the namespace. There was an initial suggestion of 'Drupal\Core\Config\Schema\ConfigSchemaChecker'. And later the patch used '\Drupal\Core\Config\Devel\ConfigSchemaChecker', which was changed to '\Drupal\Core\Config\Development\ConfigSchemaChecker'.

Is the current namespace '\Drupal\Core\Config\Development\ConfigSchemaChecker' the one to use or something else?

Remaining tasks

<!-- See https://drupal.org/core-mentoring/novice-tasks for tips on identifying novice tasks. Delete or add "Novice" from the Novice? column in the table below as appropriate. Uncomment tasks as the issue advances. Update the Complete? column to indicate when they are done, and maybe reference the comment number where they were done. -->

User interface changes

None.

API changes

Because we recommend copying example.settings.local.php directly and that directly includes development.services.yml this constitutes a change in behavior for people that have the local settings enabled. I.e. if they violating config, they will not be able to re-save the config after this change.

Data model changes

None.

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component

base system

Created by

πŸ‡©πŸ‡ͺGermany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024