$field->value()
Returns the field content. If a new value is passed, the modified field will be returned. Otherwise it will return the field value.
Parameters
Name | Type | Default |
---|---|---|
$value | string |Closure |
null |
Return type
mixed
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |