eZ\Publish\Core\REST\Client\ContentService::completeContentInfo PHP Метод

completeContentInfo() защищенный Метод

Returns a complete ContentInfo based on $restContentInfo.
protected completeContentInfo ( Values\RestContentInfo $restContentInfo ) : ContentInfo
$restContentInfo Values\RestContentInfo
Результат eZ\Publish\Core\REST\Client\Values\Content\ContentInfo
    protected function completeContentInfo(Values\RestContentInfo $restContentInfo)
    {
        $versionUrlValues = $this->requestParser->parse('objectVersion', $this->fetchCurrentVersionUrl($restContentInfo->currentVersionReference));
        return new Values\Content\ContentInfo($this->contentTypeService, array('id' => $restContentInfo->id, 'name' => $restContentInfo->name, 'contentTypeId' => $restContentInfo->contentTypeId, 'ownerId' => $restContentInfo->ownerId, 'modificationDate' => $restContentInfo->modificationDate, 'publishedDate' => $restContentInfo->publishedDate, 'published' => $restContentInfo->published, 'alwaysAvailable' => $restContentInfo->alwaysAvailable, 'remoteId' => $restContentInfo->remoteId, 'mainLanguageCode' => $restContentInfo->mainLanguageCode, 'mainLocationId' => $restContentInfo->mainLocationId, 'sectionId' => $restContentInfo->sectionId, 'currentVersionNo' => $versionUrlValues['version']));
    }