FormField
The static shape of one form field derived from a schema property: its name (the property key), base type, human label, whether it is required, its default, and its constraints.
FormField::__construct()
public function __construct(string $name, Milpa\Live\Schema\FieldType $type, string $label, bool $required, ?mixed $default, Milpa\Live\Schema\FieldConstraints $constraints):Parameters
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $type | Milpa\Live\Schema\FieldType | |
| $label | string | |
| $required | bool | |
| $default | ?mixed | |
| $constraints | Milpa\Live\Schema\FieldConstraints |