eZ\Publish\Core\SignalSlot\Repository::getTrashService PHP Method

getTrashService() public method

Trash service allows to perform operations related to location trash (trash/untrash, load/list from trash...)
public getTrashService ( ) : eZ\Publish\API\Repository\TrashService
return eZ\Publish\API\Repository\TrashService
    public function getTrashService()
    {
        if ($this->trashService !== null) {
            return $this->trashService;
        }
        $this->trashService = new TrashService($this->repository->getTrashService(), $this->signalDispatcher);
        return $this->trashService;
    }