I am editing the TestListener under EventListener to do some automated stuff.
Now I want to do some stuff before deleting an Object.
To inject my code when saving I use the following:
public function onObjectPreUpdate(DataObjectEvent $event)
This works fine.
But when using the following, nothing happens:
public function onObjectPreDelete(DataObjectEvent $event)
For testing purposes I implemented a Logger-call as the first part of code inside this function but not even the Logfile is created.
To me it looks like the code is completely ignored!
Can you explain this to me??