Skip to content

Save config

Plugin ID: config:save

Available since: 1.0.0

Provided tokens

Token Description
[user] The current user.
Alias: current_user
[htmx] Information about the current HTMX request.
[htmx:is_request] Whether the current request was sent by HTMX ("1" or "0").
[htmx:boosted] Whether the current request was boosted by HTMX ("1" or "0").
[htmx:history_restore] Whether the current request is for HTMX history restoration ("1" or "0").
[htmx:target] The value of the HX-Target request header.
[htmx:trigger] The value of the HX-Trigger request header.
[htmx:trigger_name] The value of the HX-Trigger-Name request header.
[htmx:current_url] The value of the HX-Current-URL request header.
[config] The configuration with all current values.
[config_original] The configuration with all original values plus overrides.
[config_name] The name of the configuration.
[event] The event.
[event:machine_name] The machine name of the ECA event.
[session_user] The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account.

A Drupal configuration was saved.

Fields

Config name — config key: config_name

Leave empty to apply to all events. To limit this event to just specific events, provide the machine name of the configuration, e.g. "system.site". This can also be limited to a range of configuration, e.g. with "node.type.", this applies to all configurations with a name starting with this pattern.

Type: textfield · Required: no · Default: empty string

The configuration name to filter on (e.g., system.site). Supports prefix matching: entering node.type. matches all content type configurations. Leave empty to react to all configuration saves.

Sync Mode — config key: sync_mode

During config sync, the Drupal site is in sync mode.

Type: select · Required: no · Default: empty string

Allowed values: '', yes, no

Filter by sync mode: 'Always' fires regardless, 'Yes' only during config sync (e.g., drush config:import), 'No' only for runtime changes outside of sync.

Write Mode — config key: write_mode

Type: select · Required: no · Default: empty string

Allowed values: '', new, update

Filter by write mode: 'Always' fires for both, 'New' only when configuration is created for the first time, 'Update' only when existing configuration is modified.