ToolbarPanelProviderInterface
API reference › Yii3 Debug › Panel › ToolbarPanelProviderInterface
Implemented by 8 types
Defines an extension panel that can contribute captured metrics to the debug toolbar.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
hasContent() abstract | Returns whether a captured payload contains activity worth exposing in the sidebar. | ExtensionPanelInterface |
icon() abstract | Returns the shared Debug Core icon key. | ExtensionPanelInterface |
id() abstract | Returns the stable panel identifier used in captured payloads and debug URLs. | ExtensionPanelInterface |
name() abstract | Returns the human-readable panel name. | ExtensionPanelInterface |
render() abstract | Renders the detail content for a captured payload. | ExtensionPanelInterface |
toolbarItems() abstract | Returns the toolbar metrics for a captured payload. | ToolbarPanelProviderInterface |
Method details
Section titled “Method details”toolbarItems()
Section titled “toolbarItems() ”abstract public function toolbarItems(array<string, mixed> $payload): list<PHPForge\Debug\Toolbar\ToolbarItem>Returns the toolbar metrics for a captured payload.
Parameters
| Parameter | Type | Description |
|---|---|---|
$payload | array<string, | Serialized panel payload. |
Returns
list<PHPForge\Debug\Toolbar\ToolbarItem>: Toolbar metrics, or an empty list when the panel should stay hidden.