Skip to content

Kirby 6.0.0

V::callback()

Checks with the callback sent by the user It's ideal for one-time custom validations

V::callback(mixed $value, callable $callback): bool

Parameters

Name Type Default
$valuerequired mixed no default value
$callbackrequired callable no default value

Return type

bool

Parent class

Kirby\Toolkit\V