Final Class Yiisoft\Yii\DataView\DetailView\FieldContext
| Inheritance | Yiisoft\Yii\DataView\DetailView\FieldContext |
|---|
The context of a field to be rendered.
Public Properties
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Yii\DataView\DetailView\FieldContext |
Property Details
Method Details
| 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,
) {}
Signup or Login in order to comment.