Skip to content

Kirby 6.0.1

new DefaultVisitor()

new DefaultVisitor() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

new DefaultVisitor(array $global = [], array $context = [], Closure|null $interceptor = null)

Parameters

Name Type Default Description
$global array<string, Closure> [] Valid global function closures
$context array<string, mixed> [] Data bindings for the query
$interceptor Closureornull null

Parent class

Kirby\Query\Visitors\DefaultVisitor inherited from Kirby\Query\Visitors\Visitor