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

redirectCurrentVersionRelations() public method

Redirects to the relations of the current version.
public redirectCurrentVersionRelations ( mixed $contentId ) : TemporaryRedirect
$contentId mixed
return eZ\Publish\Core\REST\Server\Values\TemporaryRedirect
    public function redirectCurrentVersionRelations($contentId)
    {
        $contentInfo = $this->repository->getContentService()->loadContentInfo($contentId);
        return new Values\TemporaryRedirect($this->router->generate('ezpublish_rest_redirectCurrentVersionRelations', array('contentId' => $contentId, 'versionNumber' => $contentInfo->currentVersionNo)));
    }