eZ\Publish\Core\REST\Server\Controller\Content::loadContentVersions PHP Method

loadContentVersions() public method

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