By wim leers on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.3.x
Introduced in version:
10.3.0
Issue links:
Description:
New methods have been added to the configuration schema \Drupal\Core\Config\Schema\Mapping class.
These methods help with adopting more helpful validation of configuration, for end users and developers alike. They are available for advanced Config Management modules in contrib (e.g. https://www.drupal.org/project/config_split, https://www.drupal.org/project/config_inspector) to use.
No code changes are required. These are available for anybody to build upon without having to reinvent the wheel.
The methods are:
Mapping::getValidKeys()Mapping::getRequiredKeys()Mapping::getOptionalKeys()Mapping::getDynamicallyValidKeys()
Known related contrib issues
https://www.drupal.org/node/3390285
Impacts:
Module developers
Comments
Documentation for Drupal\Core
Documentation for Drupal\Core\Config\Schema\Mapping