Field::factory()
Creates a new field instance
Field::factory(string $type, array $attrs = [ ], Kirby\Form\Fields $formFields = null): Kirby\Form\Field
Parameters
| Name | Type | Default |
|---|---|---|
| $type * | string |
– |
| $attrs | array |
[ ] |
| $formFields | Kirby\Form\Fields |
null |