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 $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 |