Skip to content

Kirby 4.4.1

$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