new Field()
Field constructor
new Field(string $type, array $attrs = [ ], Kirby\Form\Fields $formFields = null)
Parameters
| Name | Type | Default |
|---|---|---|
| $type * | string |
– |
| $attrs | array |
[ ] |
| $formFields | Kirby\Form\Fields |
null |
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |