Skip to content

Render: add attached library

Plugin ID: eca_render_add_attached_library

Available since: 3.0.12

Attach a JavaScript/CSS library to an existing render array element. Only works when reacting upon a rendering event, such as Build form or Build ECA Block.

Fields

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

Library ID — config key: value

Given in the format of module_name/library_name.
This field supports tokens.

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