Class

eZ\Publish\Core\Repository\Values\ContentType\ContentTypeCreateStruct

class ContentTypeCreateStruct extends ContentTypeCreateStruct

this class is used for creating content types.

Properties

string $identifier String unique identifier of a type.
string $mainLanguageCode Main language Code.
string $remoteId The remote id.
string $urlAliasSchema URL alias schema.
string $nameSchema Name schema.
bool $isContainer Determines if the type is a container.
mixed $defaultSortField Specifies which property the child locations should be sorted on by default when created.
mixed $defaultSortOrder Specifies whether the sort order should be ascending or descending by default when created.
bool $defaultAlwaysAvailable If an instance of a content type is created the always available flag is set by default this this value.
array $names An array of names with languageCode keys.
array $descriptions An array of descriptions with languageCode keys.
mixed $creatorId If set this value overrides the current user as creator.
DateTime $creationDate If set this value overrides the current time for creation.
FieldDefinitionCreateStruct[] $fieldDefinitions \eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct[]$fieldDefinitionsthe collection of field definitions

Methods

addFieldDefinition(FieldDefinitionCreateStruct $fieldDef)

Adds a new field definition.

Details

at line 35
public addFieldDefinition(FieldDefinitionCreateStruct $fieldDef)

Adds a new field definition.

Parameters

FieldDefinitionCreateStruct $fieldDef