This class is used for creating content types.
Properties¶
$creationDate¶
If set this value overrides the current time for creation.
|
|
$creatorId¶
If set this value overrides the current user as creator.
|
|
$defaultAlwaysAvailable¶
If an instance of a content type is created the always available flag is set by default this this value.
|
|
$defaultSortField¶
Specifies which property the child locations should be sorted on by default when created.
|
|
$defaultSortOrder¶
Specifies whether the sort order should be ascending or descending by default when created.
|
|
$descriptions¶
An array of descriptions with languageCode keys.
|
|
an array of string
$fieldDefinitions¶
|
|
the collection of field definitions
$identifier¶
String unique identifier of a type.
|
|
Required.
$isContainer¶
Determines if the type is a container.
|
|
$mainLanguageCode¶
Main language Code.
|
|
Required.
$names¶
An array of names with languageCode keys.
|
|
Required. - at least one name in the main language is required
an array of string
$nameSchema¶
Name schema.
|
|
$remoteId¶
The remote id.
|
|
$urlAliasSchema¶
URL alias schema.
|
|
Methods¶
__construct() ¶
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties as they are not writable anymore after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string|int, mixed> | [] | - |
addFieldDefinition() ¶
Adds a new field definition.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$fieldDef | FieldDefinitionCreateStruct | - | - |
getProperties() ¶
Function where list of properties are returned.
|
|
Used by attributes(), override to add dynamic properties
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<string|int, mixed> | [] |
Additional dynamic properties exposed on the object |
Return values
array<string|int, mixed>