Final Class Yiisoft\Yii\DataView\DetailView\GetValueContext
| Inheritance | Yiisoft\ |
|---|
Context for a callable that is passed to {@see DataField::getValue()}.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $data | array|object | Yiisoft\ |
|
| $field | Yiisoft\ |
Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
Property Details
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $field | Yiisoft\ |
Data field to get value for. |
| $data | array|object |
Data item to get value from. |
public function __construct(
public readonly DataField $field,
public readonly array|object $data,
) {}
User Contributed Notes
Leave a comment
Join the conversation to share a note.