config_ignore_config_actions
No security coverage
This module provides four (opinionated) Config Actions for Config Ignore module that can be used in Drupal Recipes to manage ignore patterns safely across different operational modes.
The goal of this module is to fill the gap until Config Ignore gets its own Config Actions in #3477590: Create config action for extending config ignore settings.
These actions prevent silent data loss by failing fast if a recipe tries to add advanced patterns to a site running in a simpler mode.
Available Actions
ensureConfigIgnoreMode: Sets the site's Config Ignore mode (simple,intermediate, oradvanced).extendConfigIgnoreSimple: Adds patterns using a simple list of strings. Works in all modes.extendConfigIgnoreIntermediate: Adds patterns with separateimportandexportlists. Requires at leastintermediatemode.extendConfigIgnoreAdvanced: Adds patterns with granularcreate,update, anddeleteoperations. Requiresadvancedmode.
Example: Recommended Recipe Usage
For general-purpose recipes, use the simple action:
config:
actions:
config_ignore.settings:
extendConfigIgnoreSimple:
- user.settings
For recipes requiring specific behavior, it is recommended to ensure the mode first:
config:
actions:
config_ignore.settings:
ensureConfigIgnoreMode: advanced
extendConfigIgnoreAdvanced:
update:
import:
- system.site
delete:
import:
- views.view.frontpage