Getting Started
- Enable
config_enforce_devel
, via the modules admin page, or via Drush: drush pm-enable -y config_enforce_devel
- This will enable
config_devel
(as a dependency), which will write any enforced configs to disk automatically, including Registries (see Terminology, above)
- Visit the Enforced Configs page, available from the Toolbar menu or via the main menu Admin » Configuration » Development » Config Enforce » Enforced Configs (admin/config/development/config_enforce/enforced_configs).
- The first time that you visit this page, it will create a new Target Module for you called
config_enforce_default
(unless one already exists).
- This page contains:
- The names of all enforced configs, along with their enforcement settings. As a convenience, the names of config objects that were enforced from their config form will be rendered as links to their corresponding config forms.
- Buttons to “Generate from modules” or “Generate from active storage”, which allow new config enforcement settings to be generated, either from previously exported config, or from the database (see Adding Config Enforce to an existing project, below)
- Controls for bulk operations that allow updates to, or deletion of, config enforcement settings for any selected configs.
- Visit the “Settings” tab, or via the main menu Admin » Configuration » Development » Config Enforce » Settings (admin/config/development/config_enforce/settings)
- This page contains:
- An “Add module” button that will create a new target module for you.
- A list of modules available to set as target modules
- The default values to apply to new enforced configs
- A list of config objects to ignore from config enforcement.
- These settings are stored in a
config_enforce_devel.settings
config object, which you can enforce like any other config, so they will persist across reinstalls or developer environments. Typically you would store these in a “dev” target module which will not be enabled in production, since you won’t have Config Enforce Devel there.