$fields->fill()
Sets the value for each field with a matching key in the input array
$fields->fill(array $input, bool $passthrough = true): Kirby\Form\Fields
Parameters
| Name | Type | Default |
|---|---|---|
| $inputrequired | array |
no default value |
| $passthrough | bool |
true
|
Return type
This method does not modify the existing $fields object but returns a new object with the changes applied. Learn more →