Skip to content

Kirby 3.6.6

$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.

$field->value(string|\Closure $value = null): mixed

Parameters

Name Type Default
$value string|Closure null

Return type

mixed

Exceptions

Parent class

Kirby\Cms\Field