Skip to content

Kirby 6.0.0

$colorField->fill()

Sets a new value for the field

$colorField->fill(mixed $value): ColorField

Parameters

Name Type Default
$valuerequired mixed no default value

Return type

Kirby\Form\Field\ColorField

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

Parent class

Kirby\Form\Field\ColorField inherited from Kirby\Form\Field\ValueField