$fields->get()
Getter
$fields->get(string $key, mixed $default = null): Kirby\Form\Field|Kirby\Form\FieldClass|mixed|null
Parameters
Name | Type | Default |
---|---|---|
$keyrequired | string |
no default value |
$default | mixed |
null
|
Return types
Kirby\Form\Field
orKirby\Form\FieldClass
ormixed
ornull
This method modifies the existing $fields
object it is applied to and returns it again.
Parent class
Kirby\Form\Fields
inherited from Kirby\Toolkit\Collection