-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are update hooks a problem when the subprofile overrides configuration files? #32
Comments
This is probably the most standard form of reverting configuration back to code:
Doing this will revert the configuration wherever it is stored. So it shouldn't matter if I subprofile is overriding config. Manually setting config could be a little more tricky. What happens if the base profile tries to manually update the "contributor" user role with a new permission when the subprofile has removed it?
I'll try this out. |
Trying to get config for a missing role or any missing config just returns NULL
So a conditional should be applied in update hooks to see if there is config present before settings new config. If a random config item is attempted to be fetched that Drupal knows nothing about then an Exception occurs when attempting to save. So a conditional/try-catch is needed.
Throws To fix this use:
or
|
NO I think config items need to be checked if manually altering config. Otherwise just reverting whole config files is fine. |
No description provided.
The text was updated successfully, but these errors were encountered: