Skip to content

Kirby 4.4.1

Validations::boolean()

Validates if the field value is boolean

Validations::boolean(\Kirby\Form\Field|\Kirby\Form\FieldClass $field, $value): bool

Parameters

Name Type Default
$field * Kirby\Form\Field|Kirby\Form\FieldClass
$value * mixed

Return type

bool

Exceptions

Parent class

Kirby\Form\Validations