EmptyState
API reference › Debug Core › Helper › EmptyState
Renders the contextual empty-state card shown when a panel captured no data for the request.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
card() static | Renders the empty-state card: headline followed by the explanatory body elements. | EmptyState |
Method details
Section titled “Method details”card()
Section titled “card() ”public static function card(string $headline, string|Stringable ...$body): stringRenders 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
| Parameter | Type | Description |
|---|---|---|
$headline | string | Card headline describing the empty capture. |
...$body | string|Stringable | Trusted explanatory body markup rendered after the headline. |
Returns
string: Empty-state card markup.