$defaultVisitor->variable()
Get variable from context or global function
$defaultVisitor->variable() 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.
$defaultVisitor->variable(string $name): mixed
Parameters
| Name | Type | Default |
|---|---|---|
| $namerequired | string |
no default value |
Return type
mixed
This method modifies the existing $defaultvisitor object it is applied to and returns it again.