Skip to content

Kirby 6.0.0

$visitor->closure()

$visitor->closure() 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.

$visitor->closure(ClosureNode $node): Closure

Parameters

Name Type Default
$noderequired Kirby\Query\AST\ClosureNode no default value

Return type

Closure

Parent class

Kirby\Query\Visitors\Visitor