# DumpCardRenderer

> Renders the typed dump cells of the dumps grid for the Dump debug panel.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Dump](/docs/extensions/debug-core/reference/panel/dump/index.md) › DumpCardRenderer

| final class | `PHPForge\Debug\Panel\Dump\DumpCardRenderer` |
| --- | --- |
| Source | [`src/Panel/Dump/DumpCardRenderer.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Dump/DumpCardRenderer.php#L42) |

Renders the typed dump cells of the dumps grid for the Dump debug panel.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`renderMessageCell()`](#method-renderMessageCell) static | Renders the dump card combining the head (`#index`, type badge, time, trace label) and the body (highlighted payload + optional trace list). | `DumpCardRenderer` |

## Method details

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

```php
public static function renderMessageCell(PHPForge\Debug\Panel\Dump\DumpRow $row, Closure(array<string, mixed>): string $traceLine, int $index): string
```

Renders the dump card combining the head (`#index`, type badge, time, trace label) and the body (highlighted
payload + optional trace list).

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$row` | [`DumpRow`](/docs/extensions/debug-core/reference/panel/dump/dumprow/index.md) | Typed dump record. |
| `$traceLine` | [`Closure`](https://www.php.net/manual/en/class.closure.php)`(array<string, mixed>): string` | Renders one backtrace frame as a link line. |
| `$index` | `int` | Zero-based row index assigned by GridView. |

**Returns**

`string`