Skip to content
PHP Ecosystem
Explore

EmptyState

API reference › Debug Core › Helper › EmptyState

final classPHPForge\Debug\Helper\EmptyState
Sourcesrc/Helper/EmptyState.php

Renders the contextual empty-state card shown when a panel captured no data for the request.

MethodDescriptionDefined by
card() staticRenders the empty-state card: headline followed by the explanatory body elements.EmptyState
public static function card(string $headline, string|Stringable ...$body): string

Renders the empty-state card: headline followed by the explanatory body elements.

Body values are trusted markup assembled by debug adapters; callers must encode untrusted data before passing it.

Parameters

ParameterTypeDescription
$headlinestringCard headline describing the empty capture.
...$bodystring|StringableTrusted explanatory body markup rendered after the headline.

Returns

string: Empty-state card markup.