$blocksField->value()
Returns the value of the field if it has a value otherwise it returns null
Alias for self::toFormValue()
$blocksField->value(bool $default = false): mixed
Parameters
| Name | Type | Default |
|---|---|---|
| $default | bool |
false
|
Return type
mixed
This method modifies the existing $blocksfield object it is applied to and returns it again.
Parent class
Kirby\Form\Field\BlocksField
inherited from Kirby\Form\FieldClass