Validations::boolean()
Validates if the field value is boolean
Parameters
Name | Type | Default |
---|---|---|
$field * | Kirby\Form\Field |
– |
$value * | – |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
Validates if the field value is boolean
Name | Type | Default |
---|---|---|
$field * | Kirby\Form\Field |
– |
$value * | – |
bool
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |