public function mapContentInfo(VersionInfo $versionInfo, $languageCode)
    {
        $contentInfo = $versionInfo->contentInfo;
        $contentType = $this->contentTypeService->loadContentType($contentInfo->contentTypeId);

        return new ContentInfo(
            [
                'name' => $versionInfo->getName($languageCode),
                'languageCode' => $languageCode,
                'contentTypeIdentifier' => $contentType->identifier,
                'contentTypeName' => $this->getTranslatedString($languageCode, (array)$contentType->getNames()),
                'contentTypeDescription' => $this->getTranslatedString($languageCode, (array)$contentType->getDescriptions()),
                'innerContentInfo' => $versionInfo->contentInfo,
                'innerContentType' => $contentType,
                'site' => $this->site,
            ]
        );
    }
public function mapContentInfo(VersionInfo $versionInfo, $languageCode)
    {
        $contentInfo = $versionInfo->contentInfo;
        $contentType = $this->contentTypeService->loadContentType($contentInfo->contentTypeId);

        return new ContentInfo(
            [
                'name' => $versionInfo->getName($languageCode),
                'languageCode' => $languageCode,
                'contentTypeIdentifier' => $contentType->identifier,
                'contentTypeName' => $this->getTranslatedString($languageCode, (array)$contentType->getNames()),
                'contentTypeDescription' => $this->getTranslatedString($languageCode, (array)$contentType->getDescriptions()),
                'innerContentInfo' => $versionInfo->contentInfo,
                'innerContentType' => $contentType,
                'site' => $this->site,
            ]
        );
    }
public function mapContentInfo ( VersionInfo $ versionInfo , $ languageCode ) { $ contentInfo = $ versionInfo -> contentInfo ; $ contentType = $ this -> contentTypeService -> loadContentType ( $ contentInfo -> contentTypeId ) ; return new ContentInfo ( [ 'name' => $ versionInfo -> getName ( $ languageCode ) , 'languageCode' => $ languageCode , 'contentTypeIdentifier' => $ contentType -> identifier , 'contentTypeName' => $ this -> getTranslatedString ( $ languageCode , ( array ) $ contentType -> getNames ( ) ) , 'contentTypeDescription' => $ this -> getTranslatedString ( $ languageCode , ( array ) $ contentType -> getDescriptions ( ) ) , 'innerContentInfo' => $ versionInfo -> contentInfo , 'innerContentType' => $ contentType , 'site' => $ this -> site , ] ) ; }
Maps Repository ContentInfo to the Site ContentInfo.

@param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo
@param string $languageCode

@return \Netgen\EzPlatformSiteApi\API\Values\ContentInfo
Maps Repository ContentInfo to the Site ContentInfo .