- Issue created by @mlncn
- π¨π¦Canada gapple
Anywhere with an
#attached
, just like with libraries, sohook_page_attachments()
is fine. The attached scripts are added to the page with library scripts - in the header or before the end of the body as configured on each item'sscope
attribute.Though as always, I will recommend using a proper library with a JavaScript file, and passing data via
drupalSettings
, rather than using inline scripts. - Status changed to Fixed
5 months ago 11:57pm 31 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.