# HistoryGridRenderer

> Renders the filterable, paginated request history grid with Debug Core primitives.

[API reference](/docs/api/index.md) › [Yii3 Debug](/docs/extensions/yii3-debug/reference/index.md) › [Web](/docs/extensions/yii3-debug/reference/web/index.md) › HistoryGridRenderer

| final class | `Yii3\Debug\Web\HistoryGridRenderer` |
| --- | --- |
| Source | [`src/Web/HistoryGridRenderer.php`](https://github.com/yii3/debug/blob/main/src/Web/HistoryGridRenderer.php#L30) |

Renders the filterable, paginated request history grid with Debug Core primitives.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`render()`](#method-render) static | Renders the history grid, including the Query column only when the Database panel is registered. | `HistoryGridRenderer` |

## Method details

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

```php
public static function render(array<string, PHPForge\Debug\Storage\RequestSummary> $summaries, array<array-key, mixed> $queryParams, string $routePrefix, Yii3\Debug\Panel\DbPanel|null $dbPanel = null): string
```

Renders the history grid, including the Query column only when the Database panel is registered.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$summaries` | `array<string, PHPForge\Debug\Storage\RequestSummary>` | Manifest entries in capture order. |
| `$queryParams` | `array<array-key, mixed>` | Request query parameters driving filtering, sorting, and paging. |
| `$routePrefix` | `string` | Base route used to generate debugger URLs. |
| `$dbPanel` | [`Yii3\Debug\Panel\DbPanel`](/docs/extensions/yii3-debug/reference/panel/dbpanel/index.md)`\|null` | Registered Database panel supplying the critical-query threshold, or `null`. |

**Returns**

`string`: Rendered history grid.