Skip to content

Kirby 6.0.0

$colorField->format()

$colorField->format(): 'hex'|'hsl'|'rgb'

Return types

'hex'or'hsl'or'rgb'

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the format is not supported

Parent class

Kirby\Form\Field\ColorField