Class

eZ\Publish\Core\REST\Client\Values\ContentType\ContentTypeDraft

class ContentTypeDraft extends ContentTypeDraft

This class represents a draft of a content type.

Constants

STATUS_DEFINED

STATUS_DRAFT

STATUS_MODIFIED

Methods

__construct(ContentType $innerContentType)

Creates a new draft with $innerContentType.

ContentType getInnerContentType()

Returns the inner content type.

getNames()

{@inheritdoc}

getName($languageCode = null)

{@inheritdoc}

getDescriptions()

{@inheritdoc}

getDescription($languageCode = null)

{@inheritdoc}

ContentTypeGroup[] getContentTypeGroups()

This method returns the content type groups this content type is assigned to.

FieldDefinition[] getFieldDefinitions()

This method returns the content type field definitions from this type.

FieldDefinition getFieldDefinition(string $fieldDefinitionIdentifier)

This method returns the field definition for the given identifier.

__get($propertyName)

__set($propertyName, $propertyValue)

__isset($propertyName)

Details

at line 34
public __construct(ContentType $innerContentType)

Creates a new draft with $innerContentType.

Parameters

ContentType $innerContentType

at line 47
public ContentType getInnerContentType()

Returns the inner content type.

ONLY FOR INTERNAL USE IN THE INTEGRATION TEST SUITE.

Return Value

ContentType

at line 55
public getNames()

{@inheritdoc}

at line 63
public getName($languageCode = null)

{@inheritdoc}

Parameters

$languageCode

at line 71
public getDescriptions()

{@inheritdoc}

at line 79
public getDescription($languageCode = null)

{@inheritdoc}

Parameters

$languageCode

at line 89
public ContentTypeGroup[] getContentTypeGroups()

This method returns the content type groups this content type is assigned to.

Return Value

ContentTypeGroup[]

at line 99
public FieldDefinition[] getFieldDefinitions()

This method returns the content type field definitions from this type.

Return Value

FieldDefinition[]

at line 111
public FieldDefinition getFieldDefinition(string $fieldDefinitionIdentifier)

This method returns the field definition for the given identifier.

Parameters

string $fieldDefinitionIdentifier

Return Value

FieldDefinition

at line 116
public __get($propertyName)

Parameters

$propertyName

at line 121
public __set($propertyName, $propertyValue)

Parameters

$propertyName
$propertyValue

at line 126
public __isset($propertyName)

Parameters

$propertyName