eZ\Publish\Core\Persistence\Legacy\Content\Location\Trash\Handler::delete PHP Method

delete() protected method

If there is no more locations for corresponding content, then it will be deleted as well.
protected delete ( eZ\Publish\SPI\Persistence\Content\Location\Trashed $trashItem )
$trashItem eZ\Publish\SPI\Persistence\Content\Location\Trashed
    protected function delete(Trashed $trashItem)
    {
        $this->locationGateway->removeElementFromTrash($trashItem->id);
        if ($this->locationGateway->countLocationsByContentId($trashItem->contentId) < 1) {
            $this->contentHandler->deleteContent($trashItem->contentId);
        }
    }