PanelContent
API reference › Yii3 Debug › Panel › PanelContent
Applies the fail-open content policy shared by the toolbar chips and the sidebar navigation.
A panel that throws while deciding is treated as present, so its chip or navigation entry stays discoverable and the render step can expose the failure.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
isPresent() static | Returns whether a captured payload holds content worth exposing. | PanelContent |
Method details
Section titled “Method details”isPresent()
Section titled “isPresent() ”public static function isPresent(Yii3\Debug\Panel\ExtensionPanelInterface $panel, array<string, mixed> $payload): boolReturns whether a captured payload holds content worth exposing.
Parameters
| Parameter | Type | Description |
|---|---|---|
$panel | ExtensionPanelInterface | Panel presenting the capture. |
$payload | array<string, | Serialized panel payload. |
Returns
bool: true when the panel reports content or fails to decide; false otherwise.