Problem/Motivation
Determining what configuration updates are available from installed extensions requires a baseline to compare against and to use for 3-way merges (see #2960874: Support 3-way configuration merging).
The Configuration Synchronizer contrib module provides a relevant approach via the Configuration Snapshotter module.
Proposed resolution
Adapt from Configuration Synchronizer:
- Storage service
- Snapshotter interface and service
- Lister service
- Snapshotter event subscriber
- Implementation of hook_modules_installed() and hook_themes_installed()
Apply all config actions to the snapshot storage as well as to the active config storage.
Comments
Comment #10
nedjoRequired for #2960999: Support updating extension-provided config via configuration synchronization API and UI.
Comment #11
nedjoComment #12
nedjoComment #13
nedjoThis is also a potential enabler for #2428045: Comparing active storage to install storage is problematic, install storage may change anytime.
Comment #14
thejimbirch commentedComment #15
bsnodgrass commentedmoved to Drupal Core, per https://www.drupal.org/project/distributions_recipes/issues/3513044