Any time we update our database config_split entry with new graylisted or blacklisted items, we have to also update our config_readonly exceptions. It would be nice if these two modules could work together using hook_config_readonly_whitelist_patterns().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3077437-config-split-database-config-readonly-whitelist.patch | 793 bytes | dave reid |
Comments
Comment #2
dave reidPatch adds an implementation of hook_config_readonly_whitelist_patterns().
Comment #3
bircherI am very interested in adding this feature. (I helped with adding the hook after all)
I am also inclined to just commit it, however, I have a doubt.
I think this only works with splits that are by default enabled. (ie it does not check for the configuration overrides)
We recommend to control the split being active in settings.php, so I think we should make sure we use that here too.
Comment #4
dave reidI've tested this and the loadByProperties() does actually work with settings.php activated-or-deactived config splits as expected. The method inspects the config entities that includes overrides as I understand it.
Comment #5
dave reidComment #7
bircherGreat! Thanks for the contribution!