Skip to content

Kirby 3.9.1

$field->replace()

It parses any queries found in the field value.

$field->replace(array $data = [ ], string $fallback = ''): Kirby\Cms\Field

Parameters

Name Type Default Description
$data array [ ]
$fallback string '' Fallback for tokens in the template that cannot be replaced
(null to keep the original token)

Return type

Kirby\Cms\Field