Skip to content

Kirby 5.2.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