new Field()
new Field(string $type, array $attrs = [ ], Kirby\Form\Fields|null $siblings = null)
Parameters
| Name | Type | Default |
|---|---|---|
| $typerequired | string |
no default value |
| $attrs | array |
[ ]
|
| $siblings | Kirby\Form\Fieldsornull |
null
|
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |