public function loadUserDrafts($userId, Request $request)
    {
        $contentDrafts = $this->contentService->loadContentDrafts(
            $this->userService->loadUser($userId)
        );

        return new Values\VersionList($contentDrafts, $request->getPathInfo());
    }
public function loadUserDrafts($userId, Request $request)
    {
        $contentDrafts = $this->contentService->loadContentDrafts(
            $this->userService->loadUser($userId)
        );

        return new Values\VersionList($contentDrafts, $request->getPathInfo());
    }
public function loadUserDrafts ( $ userId , Request $ request ) { $ contentDrafts = $ this -> contentService -> loadContentDrafts ( $ this -> userService -> loadUser ( $ userId ) ) ; return new Values \ VersionList ( $ contentDrafts , $ request -> getPathInfo ( ) ) ; }
Loads drafts assigned to user.

@param $userId

@return \eZ\Publish\Core\REST\Server\Values\VersionList
Loads drafts assigned to user .