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

Core/FieldType/ImageAsset/Value.php
Go to the documentation of this file.
1 <?php
2
7 declare(strict_types=1);
8
9 namespace eZ\Publish\Core\FieldType\ImageAsset;
10
11 use eZ\Publish\Core\FieldType\Value as BaseValue;
12
13 class Value extends BaseValue
14 {
20 public $destinationContentId;
21
27 public $alternativeText;
28
33 public function __construct($destinationContentId = null, ?string $alternativeText = null)
34 {
35 parent::__construct([
36 'destinationContentId' => $destinationContentId,
37 'alternativeText' => $alternativeText,
38 ]);
39 }
40
44 public function __toString()
45 {
46 return (string) $this->destinationContentId;
47 }
48 }
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Value
Struct that stores extra value information for a Criterion object.
Definition: API/Repository/Values/Content/Query/Criterion/Value.php:13
eZ\Publish\Core\FieldType\ImageAsset\Value\__construct
__construct($destinationContentId=null, ?string $alternativeText=null)
Definition: Core/FieldType/ImageAsset/Value.php:33
eZ\Publish\Core\FieldType\ImageAsset\Value\$destinationContentId
$destinationContentId
Definition: Core/FieldType/ImageAsset/Value.php:20
eZ\Publish\Core\FieldType\ImageAsset\Value\__toString
__toString()
{Returns a string representation of the field value.string}
Definition: Core/FieldType/ImageAsset/Value.php:44
eZ\Publish\Core\FieldType\ImageAsset\Value\$alternativeText
$alternativeText
Definition: Core/FieldType/ImageAsset/Value.php:27
eZ\Publish\Core\FieldType\Value
Abstract class for all field value classes.
Definition: Core/FieldType/Value.php:17
eZ\Publish\Core\FieldType\ImageAsset
Definition: AssetMapper.php:9
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.