Skip to content

Key value store: write

Available since: 2.0.0

Write a value to the Drupal key value store by the given key.

Fields

Collection

The collection of the store.

Store key

The key of the value in the store.

Value

The value to store.

Interpret above value as YAML format

Nested data can be set using YAML format, for example mykey: "My value". 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]"

Only if new

If enabled, this only stores the value if the key does not exist yet.