0 follower

Final Class Yiisoft\Yii\DataView\DetailView\FieldContext

InheritanceYiisoft\Yii\DataView\DetailView\FieldContext

The context of a field to be rendered.

Property Details

Hide inherited properties

$data public property
public array|object $data null
$field public property
$label public property
public string $label null
$value public property
public string $value null

Method Details

Hide inherited methods

__construct() public method

public __construct( Yiisoft\Yii\DataView\DetailView\DataField $field, array|object $data, string $value, string $label ): mixed
$field Yiisoft\Yii\DataView\DetailView\DataField

The field to render.

$data array|object

The data item to use.

$value string

The value to render.

$label string

The label to render.

                public function __construct(
    public readonly DataField $field,
    public readonly array|object $data,
    public readonly string $value,
    public readonly string $label,
) {}