Skip to content

Kirby 3.7.5

Dumper

Object and variable dumper to help with debugging.

Deprecated in 3.7.0
Disable dump() via KIRBY_HELPER_DUMP instead and create your own function

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