Skip to content

Persistent state: write

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.


State key

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

The value of the state

The key, where the value is stored into.

Interpret above config value as YAML format

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]"

Last update: August 1, 2023 15:32:39