Skip to content

Persistent state: write

Plugin ID: eca_state_write

Available since: 1.1.0

Writes a value into the Drupal state system by the given key.

Writes a key/value pair to the Drupal state. The value can be stored in a token.

Fields

State key — config key: key

The key of the Drupal state.
This field supports tokens.

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

The value of the state — config key: value

The key, where the value is stored into.
This field supports tokens.

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

Interpret above config value as YAML format — config key: use_yaml

Nested data can be set using YAML format, for example mykey: myvalue. When using this format, this option needs to be enabled. When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: title: "[node:title]"

Type: checkbox · Required: no · Default: false

Validate YAML to prevent this from being executed when invalid — config key: validate_yaml

Type: checkbox · Required: no · Default: false