public function loadContentVersions($contentId, Request $request)
    {
        $contentInfo = $this->repository->getContentService()->loadContentInfo($contentId);

        return new Values\VersionList(
            $this->repository->getContentService()->loadVersions($contentInfo),
            $request->getPathInfo()
        );
    }
public function loadContentVersions($contentId, Request $request)
    {
        $contentInfo = $this->repository->getContentService()->loadContentInfo($contentId);

        return new Values\VersionList(
            $this->repository->getContentService()->loadVersions($contentInfo),
            $request->getPathInfo()
        );
    }
public function loadContentVersions ( $ contentId , Request $ request ) { $ contentInfo = $ this -> repository -> getContentService ( ) -> loadContentInfo ( $ contentId ) ; return new Values \ VersionList ( $ this -> repository -> getContentService ( ) -> loadVersions ( $ contentInfo ) , $ request -> getPathInfo ( ) ) ; }
Returns a list of all versions of the content. This method does not
include fields and relations in the Version elements of the response.

@param mixed $contentId

@return \eZ\Publish\Core\REST\Server\Values\VersionList
Returns a list of all versions of the content . This method does not include fields and relations in the Version elements of the response .