- Issue created by @Jon Nunan
After updating to Drupal 10.2, some admin forms were no longer readonly in my production environments
* Install config_readonly on a Drupal 10.2 site
* add the readonly flag in settings.php to always be true.
* Visit a form like admin/config/media/file-system and notice how it is editable.
I think its hitting changes from https://www.drupal.org/node/3373502 β as quite a few core forms are now using RedundantEditableConfigNamesTrait https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Re...
This returns an empty array on getEditableConfigNames which is called in \Drupal\config_readonly\EventSubscriber\ReadOnlyFormSubscriber
and causes the form to incorrectly match the allowlist/whitelist
Active
Code