protected function delete(Trashed $trashItem) { $this->locationGateway->removeElementFromTrash($trashItem->id); if ($this->locationGateway->countLocationsByContentId($trashItem->contentId) < 1) { $this->contentHandler->deleteContent($trashItem->contentId); } }