FieldConfig
API reference › Form Model › Attribute › FieldConfig
Defines field configuration options for a form-model property.
Usage example:
#[FieldConfig(['class' => ['input', 'input-bordered']])]public string $email = '';Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$value readonly constructor | array<string, | Method names mapped to field or widget arguments. | FieldConfig |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates field configuration metadata. | FieldConfig |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(array<string, mixed> $value)Creates field configuration metadata.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | array<string, | Method names mapped to the argument, or list of arguments, applied to the field or to the widget that renders it. |