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

NameableFieldTypeFallback.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\FieldType;
8
9 use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition;
10 use eZ\Publish\SPI\FieldType\FieldType as SPIFieldType;
11 use eZ\Publish\SPI\FieldType\Nameable;
12 use eZ\Publish\SPI\FieldType\Value as SPIValue;
13
20 class NameableFieldTypeFallback implements Nameable
21 {
23 private $fieldType;
24
28 public function __construct(SPIFieldType $fieldType)
29 {
30 $this->fieldType = $fieldType;
31 }
32
40 public function getFieldName(SPIValue $value, FieldDefinition $fieldDefinition, $languageCode)
41 {
42 return $this->fieldType->getName($value);
43 }
44 }
eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
Definition: API/Repository/Values/ContentType/FieldDefinition.php:31
eZ\Publish\Core\FieldType\NameableFieldTypeFallback
Class NameableFieldTypeFallback.
Definition: NameableFieldTypeFallback.php:21
eZ\Publish\Core\FieldType\NameableFieldTypeFallback\__construct
__construct(SPIFieldType $fieldType)
Definition: NameableFieldTypeFallback.php:28
eZ\Publish\Core\FieldType\NameableFieldTypeFallback\getFieldName
getFieldName(SPIValue $value, FieldDefinition $fieldDefinition, $languageCode)
Definition: NameableFieldTypeFallback.php:40
eZ\Publish\Core\FieldType\NameableFieldTypeFallback\$fieldType
$fieldType
Definition: NameableFieldTypeFallback.php:23
eZ\Publish\SPI\FieldType\FieldType
The field type interface which all field types have to implement.
Definition: SPI/FieldType/FieldType.php:30
eZ\Publish\SPI\FieldType\Nameable
The field type interface which all field types have to implement to be able to generate content name ...
Definition: Nameable.php:36
eZ\Publish\SPI\FieldType\Value
Interface for field value classes.
Definition: SPI/FieldType/Value.php:13
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.