Skip to content

Instantly share code, notes, and snippets.

View jfcartier's full-sized avatar
🎯
Focusing

JF jfcartier

🎯
Focusing
View GitHub Profile
@jfcartier
jfcartier / MODULE.libraries.yml
Last active March 20, 2020 02:56
D8 - Passing a PHP variable to JavaScript with drupalSettings
library:
version: VERSION
js:
js/script.js: {}
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings