Problem/Motivation
To aid with settings provided by modules - https://www.drupal.org/docs/8/modules/features/settings-provided-by-othe...
There's a use case for excluding certain active configuration properties from being exported (or showing up as overrides in the diff).
An API hook has been added to allow custom modules to manipulate the override configurations.
Proposed resolution
Add module API alter hook allowing developers to manipulate the configuration object.
User interface changes
N/A
API changes
New hook_features_storage_alter hook.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3136133-alter-storage-config-before-diffing-8.diff | 4.03 KB | codebymikey |
Issue fork features-3136133
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
codebymikey commentedComment #3
codebymikey commentedComment #4
nedjo@codebymikey, Is this needed as well as #3136087: Provide PRE- event hooks for import, revert and delete commands, or can we close this issue?
Comment #5
codebymikey commented@nedjo, they're both needed.
This behaviour is specific to the diff (before
config_updateis called for reverts/imports) to determine whether a config shows up as changed or not, whereas #3136087: Provide PRE- event hooks for import, revert and delete commands is for the actual behaviour during revert/import.Ideally they'd be implemented as a single hook/event, but since the behaviour is currently implemented in different modules, I think it's better for the hooks to be separate and the developer would integrate them as needed.
Comment #6
codebymikey commentedSwitching to target the 5.0.x branch
Comment #8
codebymikey commentedApply a patch targetting 5.0.x.
Comment #10
codebymikey commentedStill need to update unit tests, but switching MR to target 8.x-3.x-dev instead