public function mapContent(VersionInfo $versionInfo, $languageCode)
    {
        $contentInfo = $versionInfo->contentInfo;

        return new Content(
            [
                'id' => $contentInfo->id,
                'mainLocationId' => $contentInfo->mainLocationId,
                'name' => $versionInfo->getName($languageCode),
                'languageCode' => $languageCode,
                'innerVersionInfo' => $versionInfo,
                'site' => $this->site,
                'domainObjectMapper' => $this,
                'repository' => $this->repository,
            ]
        );
    }
public function mapContent(VersionInfo $versionInfo, $languageCode)
    {
        $contentInfo = $versionInfo->contentInfo;

        return new Content(
            [
                'id' => $contentInfo->id,
                'mainLocationId' => $contentInfo->mainLocationId,
                'name' => $versionInfo->getName($languageCode),
                'languageCode' => $languageCode,
                'innerVersionInfo' => $versionInfo,
                'site' => $this->site,
                'domainObjectMapper' => $this,
                'repository' => $this->repository,
            ]
        );
    }
public function mapContent ( VersionInfo $ versionInfo , $ languageCode ) { $ contentInfo = $ versionInfo -> contentInfo ; return new Content ( [ 'id' => $ contentInfo -> id , 'mainLocationId' => $ contentInfo -> mainLocationId , 'name' => $ versionInfo -> getName ( $ languageCode ) , 'languageCode' => $ languageCode , 'innerVersionInfo' => $ versionInfo , 'site' => $ this -> site , 'domainObjectMapper' => $ this , 'repository' => $ this -> repository , ] ) ; }
Maps Repository Content to the Site Content.

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

@return \Netgen\EzPlatformSiteApi\Core\Site\Values\Content
Maps Repository Content to the Site Content .