Skip to content
PHP Ecosystem
Explore

DumpTreeRenderer

API reference › Debug Core › Panel › Log › DumpTreeRenderer

final classPHPForge\Debug\Panel\Log\DumpTreeRenderer
Sourcesrc/Panel/Log/DumpTreeRenderer.php

Renders a dump tree as collapsible <details> markup for the Log debug panel.

The root block starts open unless the tree spans more than MAX_OPEN_LINES lines; all text is escaped once.

MethodDescriptionDefined by
render() staticRenders a dump tree, or only the value markup of a scalar or enum case root.DumpTreeRenderer
public static function render(PHPForge\Debug\Panel\Log\DumpNode $root): string

Renders a dump tree, or only the value markup of a scalar or enum case root.

Parameters

ParameterTypeDescription
$rootDumpNode

Returns

string