# ExtensionPanelInterface

> Defines a stateless presenter for an optional debug panel.

[API reference](/docs/api/index.md) › [Yii3 Debug](/docs/extensions/yii3-debug/reference/index.md) › [Panel](/docs/extensions/yii3-debug/reference/panel/index.md) › ExtensionPanelInterface

| interface | `Yii3\Debug\Panel\ExtensionPanelInterface` |
| --- | --- |
| Source | [`src/Panel/ExtensionPanelInterface.php`](https://github.com/yii3/debug/blob/main/src/Panel/ExtensionPanelInterface.php#L10) |

Implemented by 1 type:

- [`ToolbarPanelProviderInterface`](/docs/extensions/yii3-debug/reference/panel/toolbarpanelproviderinterface/index.md)

Defines a stateless presenter for an optional debug panel.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`hasContent()`](#method-hasContent) abstract | Returns whether a captured payload contains activity worth exposing in the sidebar. | `ExtensionPanelInterface` |
| [`icon()`](#method-icon) abstract | Returns the shared Debug Core icon key. | `ExtensionPanelInterface` |
| [`id()`](#method-id) abstract | Returns the stable panel identifier used in captured payloads and debug URLs. | `ExtensionPanelInterface` |
| [`name()`](#method-name) abstract | Returns the human-readable panel name. | `ExtensionPanelInterface` |
| [`render()`](#method-render) abstract | Renders the detail content for a captured payload. | `ExtensionPanelInterface` |

## Method details

### hasContent() <span id="method-hasContent"></span>

```php
abstract public function hasContent(array<string, mixed> $payload): bool
```

Returns whether a captured payload contains activity worth exposing in the sidebar.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$payload` | `array<string, mixed>` | Serialized panel payload. |

**Returns**

`bool`: `true` when the capture holds activity worth listing; `false` otherwise.

### icon() <span id="method-icon"></span>

```php
abstract public function icon(): string
```

Returns the shared Debug Core icon key.

**Returns**

`string`: Icon key for the toolbar chip.

### id() <span id="method-id"></span>

```php
abstract public function id(): string
```

Returns the stable panel identifier used in captured payloads and debug URLs.

**Returns**

`string`: Stable panel ID.

### name() <span id="method-name"></span>

```php
abstract public function name(): string
```

Returns the human-readable panel name.

**Returns**

`string`: Panel display name.

### render() <span id="method-render"></span>

```php
abstract public function render(Yii3\Debug\Panel\PanelRenderInput $input): string
```

Renders the detail content for a captured payload.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$input` | [`PanelRenderInput`](/docs/extensions/yii3-debug/reference/panel/panelrenderinput/index.md) | Payload, request context, and request summary of the page being rendered. |

**Returns**

`string`: Rendered detail content.