Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Core/Repository/Values/ContentType/ContentTypeCreateStruct.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\Repository\Values\ContentType;
8
9 use eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct as APIContentTypeCreateStruct;
10 use eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct;
11
19 class ContentTypeCreateStruct extends APIContentTypeCreateStruct
20 {
26 public $fieldDefinitions = [];
27
33 public function addFieldDefinition(FieldDefinitionCreateStruct $fieldDef)
34 {
35 $this->fieldDefinitions[] = $fieldDef;
36 }
37 }
eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct
Definition: API/Repository/Values/ContentType/ContentTypeCreateStruct.php:18
eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct
this class is used to create a field definition.
Definition: API/Repository/Values/ContentType/FieldDefinitionCreateStruct.php:15
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeCreateStruct
Definition: Core/Repository/Values/ContentType/ContentTypeCreateStruct.php:20
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeCreateStruct\addFieldDefinition
addFieldDefinition(FieldDefinitionCreateStruct $fieldDef)
Adds a new field definition.
Definition: Core/Repository/Values/ContentType/ContentTypeCreateStruct.php:33
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeCreateStruct\$fieldDefinitions
$fieldDefinitions
Definition: Core/Repository/Values/ContentType/ContentTypeCreateStruct.php:26
eZ\Publish\Core\Repository\Values\ContentType
Definition: Core/Repository/Values/ContentType/ContentType.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.