This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
    
Trash events¶
The following events are dispatched when managing Trash.
| Event | Dispatched by | Properties | 
|---|---|---|
| BeforeDeleteTrashItemEvent | TrashService::deleteTrashItem | TrashItem $trashItemTrashItemDeleteResult|null $result | 
| DeleteTrashItemEvent | TrashService::deleteTrashItem | TrashItem $trashItemTrashItemDeleteResult $result | 
| BeforeEmptyTrashEvent | TrashService::emptyTrash | TrashItemDeleteResultList|null $resultList | 
| EmptyTrashEvent | TrashService::emptyTrash | TrashItemDeleteResultList $resultList | 
| BeforeRecoverEvent | TrashService::recover | TrashItem $trashItemLocation $newParentLocationLocation|null $location | 
| RecoverEvent | TrashService::recover | TrashItem $trashItemLocation $newParentLocationLocation $location | 
| BeforeTrashEvent | TrashService::trash | Location $locationTrashItem|null $resultbool $resultSet = false | 
| TrashEvent | TrashService::trash | Location $locationTrashItem|null $trashItem |