Skip to content

Kirby 3.5.7.1

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.

/site/plugins/dump-helper/index.php
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