Skip to content

Kirby 6.0.1

$fields->fill()

Sets the value for each field with a matching key in the input array

$fields->fill(array $input = [], bool $passthrough = true, bool $defaults = false): Fields

Parameters

Name Type Default
$input array []
$passthrough bool true
$defaults bool false

Return type

Kirby\Form\Fields

This method does not modify the existing $fields object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Form\Fields