Skip to content

Render: add attached drupalSettings

Available since: 3.0.12

Add a drupalSettings entry to an existing render array element. Only works when reacting upon a rendering event, such as Build form or Build ECA Block.

Fields

Collection name

drupalSettings module name or collection name.
This field supports tokens.

Key

drupalSettings key within the collection.
This field supports tokens.

Machine name

Specify the machine name / key of the render element.
Leave blank to target parent.
This field supports tokens.

Value

Value to attach.
This field supports tokens.