Dumper
Object and variable dumper to help with debugging.
You can override our dump()
helper with your own implementation or an implementation from a framework.
Kirby::plugin('my/dumper', [
'components' => [
'dump' => function ($kirby, $variable, bool $echo = true) {
// dump that var
}
]
]);
Parameters
Name | Type | Default | Description |
---|---|---|---|
$kirby * | Kirby\Cms\App |
– | Kirby instance |
$variable * | mixed |
– | |
$echo | bool |
true |
Return type
string