I was having issues where $element was returning null, I'm assuming because of multisite (elements with a given ID not existing in the default site)? This fixed it.
The examples in the README also had an incorrect path for the custom events.
And I also added some values to the composer.json file to make it valid.
I was having issues where $element was returning
null
, I'm assuming because of multisite (elements with a given ID not existing in the default site)? This fixed it.The examples in the README also had an incorrect path for the custom events.
And I also added some values to the composer.json file to make it valid.