Skip to content

Kirby 3.9.8

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 null

Return type

Kirby\Form\Field

Parent class

Kirby\Form\Field