Render: add attached drupalSettings¶
Plugin ID: eca_render_add_attached_setting
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— config key:collection-
drupalSettings module name or collection name.
This field supports tokens.Type:
textfield· Required: yes · Default: empty string Key— config key:key-
drupalSettings key within the collection.
This field supports tokens.Type:
textfield· Required: yes · Default: empty string Machine name— config key:name-
Specify the machine name / key of the render element.
Leave blank to target parent.
This field supports tokens.Type:
textfield· Required: no · Default: empty string Value— config key:value-
Value to attach.
This field supports tokens.Type:
textfield· Required: yes · Default: empty string