In my plugin I am registering a callback for
Elements::EVENT_AFTER_SAVE_ELEMENT event. Previously, in Craft2, I could access the URL of the saved entry from the
$event parameter passed into the callback, like so:
However I can't figure out how to get a reference to the entry in the Event model in Craft 3. If I
var_dump($event) I can see the data I want nested deep inside a private property which I cannot access.
How do I access the entry data from the event in Craft 3?