Builds a Content domain object from value object returned from persistence.
public buildContentDomainObject ( eZ\Publish\SPI\Persistence\Content $spiContent, eZ\Publish\API\Repository\Values\ContentType\ContentType | eZ\Publish\SPI\Persistence\Content\Type $contentType = null, array $fieldLanguages = null, string | null $fieldAlwaysAvailableLanguage = null ) : |
||
$spiContent | eZ\Publish\SPI\Persistence\Content | |
$contentType | eZ\Publish\API\Repository\Values\ContentType\ContentType | eZ\Publish\SPI\Persistence\Content\Type | |
$fieldLanguages | array | Language codes to filter fields on |
$fieldAlwaysAvailableLanguage | string | null | Language code fallback if a given field is not found in $fieldLanguages |
return |