Class

eZ\Publish\Core\REST\Server\Values\RestContent

class RestContent extends Value

REST Content, as received by /content/objects/.

Might have a "Version" (aka Content in the Public API) embedded

Properties

ContentInfo $contentInfo
Location $mainLocation
Content $currentVersion
ContentType $contentType
Relation[] $relations
string $path Path that was used to load this content.

Methods

__construct(ContentInfo $contentInfo, Location $mainLocation = null, Content $currentVersion = null, ContentType $contentType = null, array $relations = null, string $path = null)

Construct.

Details

at line 66
public __construct(ContentInfo $contentInfo, Location $mainLocation = null, Content $currentVersion = null, ContentType $contentType = null, array $relations = null, string $path = null)

Construct.

Parameters

ContentInfo $contentInfo
Location $mainLocation
Content $currentVersion
ContentType $contentType Can only be null if $currentVersion is
array $relations Can only be null if $currentVersion is
string $path