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

Client/Values/FieldDefinitionList.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Client\Values;
8
9 use eZ\Publish\Core\REST\Client\ContentTypeService;
10
14 class FieldDefinitionList
15 {
21 protected $fieldDefinitionReferences;
22
28 protected $contentTypeService;
29
34 public function __construct(ContentTypeService $contentTypeService, array $fieldDefinitionReferences)
35 {
36 $this->contentTypeService = $contentTypeService;
37 $this->fieldDefinitionReferences = $fieldDefinitionReferences;
38 }
39
45 public function getFieldDefinitions()
46 {
47 $fieldDefinitions = array();
48 foreach ($this->fieldDefinitionReferences as $reference) {
49 $fieldDefinitions[] = $this->contentTypeService->loadFieldDefinition($reference);
50 }
51
52 return $fieldDefinitions;
53 }
54 }
eZ\Publish\Core\REST\Client\ContentTypeService
Definition: Core/REST/Client/ContentTypeService.php:36
eZ\Publish\Core\REST\Client\Values\FieldDefinitionList
FieldDefinitionList.
Definition: Client/Values/FieldDefinitionList.php:15
eZ\Publish\Core\REST\Client\Values\FieldDefinitionList\__construct
__construct(ContentTypeService $contentTypeService, array $fieldDefinitionReferences)
Definition: Client/Values/FieldDefinitionList.php:34
eZ\Publish\Core\REST\Client\Values\FieldDefinitionList\$fieldDefinitionReferences
$fieldDefinitionReferences
Definition: Client/Values/FieldDefinitionList.php:21
eZ\Publish\Core\REST\Client\Values\FieldDefinitionList\$contentTypeService
$contentTypeService
Definition: Client/Values/FieldDefinitionList.php:28
eZ\Publish\Core\REST\Client\Values\FieldDefinitionList\getFieldDefinitions
getFieldDefinitions()
Fetches and returns the field definitions contained in the list.
Definition: Client/Values/FieldDefinitionList.php:45
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.