Skip to content
PHP Ecosystem
Explore

PanelContent

API reference › Yii3 Debug › Panel › PanelContent

final classYii3\Debug\Panel\PanelContent
Sourcesrc/Panel/PanelContent.php

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.

MethodDescriptionDefined by
isPresent() staticReturns whether a captured payload holds content worth exposing.PanelContent
public static function isPresent(Yii3\Debug\Panel\ExtensionPanelInterface $panel, array<string, mixed> $payload): bool

Returns whether a captured payload holds content worth exposing.

Parameters

ParameterTypeDescription
$panelExtensionPanelInterfacePanel presenting the capture.
$payloadarray<string, mixed>Serialized panel payload.

Returns

bool: true when the panel reports content or fails to decide; false otherwise.