Skip to content
PHP Ecosystem
Explore

PanelRenderer

API reference › Debug Core › Panel › PanelRenderer

final classPHPForge\Debug\Panel\PanelRenderer
Sourcesrc/Panel/PanelRenderer.php

Renders external panel descriptions exclusively through the existing debugger frontend.

Dispatch narrows the sealed Block and Inline unions with instanceof, so static analysis proves that every value PanelView produces reaches a renderer.

MethodDescriptionDefined by
render() staticRenders one panel description through the existing debugger frontend.PanelRenderer
public static function render(string $name, PHPForge\Debug\PanelView $view, PHPForge\Debug\Helper\Trace|null $trace = null): string

Renders one panel description through the existing debugger frontend.

Parameters

ParameterTypeDescription
$namestringPanel title used as the accessible heading.
$viewPanelViewDescription to render.
$tracePHPForge\Debug\Helper\Trace|nullAdapter-configured frame renderer, or null to use the default source links.

Returns

string: Rendered panel markup.