new Visitor()
new Visitor() 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 Visitor(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
|