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 aren't writable anymore
after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string, mixed> | [] | - |
addFieldDefinition()
¶
Adds a new field definition.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$fieldDef | FieldDefinitionCreateStruct | - | - |
getProperties()
¶
Returns list of available properties' names.
|
|
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>