Problem/Motivation
The following issues deprecate non-boolean input in Drupal 12.1.0, with four numeric exceptions:
- #3644386: "false" is interpreted as TRUE in boolean configuration for the default
booleanconfig schema type. - #3644401: [PP-1] Config schema readers disagree on translatable: 'false' for the
translatableschema flag. - #3644410: [PP-1] Quoted "false" makes configuration nullable for the
nullableschema flag. - #3644412: [PP-1] Routing treats "false" as TRUE for _admin_route and no_cache for the
_admin_routeandno_cacheroute options.
All four retain compatibility with deprecated inputs until Drupal 13.0.0.
Proposed resolution
Reject the deprecated inputs covered by these four issues.
Remove the deprecation messages, the temporary string conversions and the reader-specific fallbacks for unrecognized input.
Replace the deprecation assertions with tests for rejection.
Continue to accept native booleans and the exact values 0, 1, '0' and '1'.
Remaining tasks
Postponed on #3644386: "false" is interpreted as TRUE in boolean configuration, #3644401: [PP-1] Config schema readers disagree on translatable: 'false', #3644410: [PP-1] Quoted "false" makes configuration nullable and #3644412: [PP-1] Routing treats "false" as TRUE for _admin_route and no_cache.
User interface changes
None.
Introduced terminology
None.
API changes
ConfigBoolean::getCastedValue() now rejects deprecated values. Supplying a deprecated value for the translatable or nullable schema flag or for the _admin_route or no_cache route option is no longer supported.
Use native booleans in PHP and unquoted true or false in YAML.
The four numeric exceptions 0, 1, '0' and '1' remain supported.
Data model changes
None.
Release notes snippet
Drupal 13 rejects previously deprecated values such as 'false' and 'true' for boolean configuration settings, the translatable and nullable schema flags, and the _admin_route and no_cache route options.
Comments
Comment #2
panchoComment #3
pancho