$field->bool()
Alias for Kirby\Content\Field::toBool()
$field->bool(bool $default = false): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $default | bool |
false
|
Return type
bool
Alias for Kirby\Content\Field::toBool()
$field->bool(bool $default = false): bool
| Name | Type | Default |
|---|---|---|
| $default | bool |
false
|
bool