Final Class Yiisoft\Yii\DataView\DetailView\FieldContext
| Inheritance | Yiisoft\ |
|---|
The context of a field to be rendered.
Public Properties
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
Property Details
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $field | Yiisoft\ |
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,
) {}
User Contributed Notes
Leave a comment
Join the conversation to share a note.