Skip to content

Kirby 4.5.0

$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(Closure|string|null $value = null): mixed|null

Parameters

Name Type Default
$value Closure|string|null null

Return type

mixed|null

Parent class

Kirby\Content\Field