Copied!

ContentTypeCreateStruct

ContentTypeCreateStruct.php : 20
Abstract
Extends ValueObject

This class is used for creating content types.

Properties

public $creationDate

ContentTypeCreateStruct.php : 100

If set this value overrides the current time for creation.

public DateTimeInterface|null $creationDate = null

public $creatorId

ContentTypeCreateStruct.php : 95

If set this value overrides the current user as creator.

public int|null $creatorId = null

public $defaultAlwaysAvailable

ContentTypeCreateStruct.php : 74

If an instance of a content type is created the always available flag is set by default this this value.

public bool $defaultAlwaysAvailable = true

public $defaultSortField

ContentTypeCreateStruct.php : 61

Specifies which property the child locations should be sorted on by default when created.

public int $defaultSortField = \Ibexa\Contracts\Core\Repository\Values\Content\Location::SORT_FIELD_PUBLISHED

Valid values are found at

public $defaultSortOrder

ContentTypeCreateStruct.php : 68

Specifies whether the sort order should be ascending or descending by default when created.

public int $defaultSortOrder = \Ibexa\Contracts\Core\Repository\Values\Content\Location::SORT_ORDER_DESC

Valid values are

public $descriptions

ContentTypeCreateStruct.php : 90

An array of descriptions with languageCode keys.

public array<string, string> $descriptions = []

an array of string

public $fieldDefinitions

ContentTypeCreateStruct.php
public array<string|int, FieldDefinitionCreateStruct$fieldDefinitions

the collection of field definitions

public $identifier

ContentTypeCreateStruct.php : 27

String unique identifier of a type.

public string $identifier

Required.

public $isContainer

ContentTypeCreateStruct.php : 54

Determines if the type is a container.

public bool $isContainer = false

public $mainLanguageCode

ContentTypeCreateStruct.php : 34

Main language Code.

public string|null $mainLanguageCode = null

Required.

public $names

ContentTypeCreateStruct.php : 83

An array of names with languageCode keys.

public array<string, string> $names = []

Required. - at least one name in the main language is required

an array of string

public $nameSchema

ContentTypeCreateStruct.php : 49

Name schema.

public string|null $nameSchema = null

public $remoteId

ContentTypeCreateStruct.php : 39

The remote id.

public string|null $remoteId = null

public $urlAliasSchema

ContentTypeCreateStruct.php : 44

URL alias schema.

public string|null $urlAliasSchema = null

Methods

public__construct()

ValueObject.php : 32

Construct object optionally with a set of properties.

public __construct([array<string, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string, mixed> [] -

publicaddFieldDefinition()

ContentTypeCreateStruct.php : 105

Adds a new field definition.

public abstract addFieldDefinition(FieldDefinitionCreateStruct $fieldDef) : void

Parameters

Name Type Default value Description
$fieldDef FieldDefinitionCreateStruct - -

protectedgetProperties()

ValueObject.php : 53

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Attributes
#[Ignore]