Skip to content

Trash events

The following events are dispatched when managing Trash.

Event Dispatched by Properties
BeforeDeleteTrashItemEvent TrashService::deleteTrashItem TrashItem $trashItem
TrashItemDeleteResult|null $result
DeleteTrashItemEvent TrashService::deleteTrashItem TrashItem $trashItem
TrashItemDeleteResult $result
BeforeEmptyTrashEvent TrashService::emptyTrash TrashItemDeleteResultList|null $resultList
EmptyTrashEvent TrashService::emptyTrash TrashItemDeleteResultList $resultList
BeforeRecoverEvent TrashService::recover TrashItem $trashItem
Location $newParentLocation
Location|null $location
RecoverEvent TrashService::recover TrashItem $trashItem
Location $newParentLocation
Location $location
BeforeTrashEvent TrashService::trash Location $location
TrashItem|null $result
bool $resultSet = false
TrashEvent TrashService::trash Location $location
TrashItem|null $trashItem