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