Skip to content

Kirby 3.7.5

$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

Example

<?= $page->text()->value()  ?>