# DumpTreeRenderer

> Renders a dump tree as collapsible <details> markup for the Log 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) › [Log](/docs/extensions/debug-core/reference/panel/log/index.md) › DumpTreeRenderer

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

Renders a dump tree as collapsible `<details>` markup for the Log debug panel.

The root block starts open unless the tree spans more than [`MAX_OPEN_LINES`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Log/DumpTreeRenderer.php#L31) lines; all text is escaped
once.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`render()`](#method-render) static | Renders a dump tree, or only the value markup of a scalar or enum case root. | `DumpTreeRenderer` |

## Method details

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

```php
public static function render(PHPForge\Debug\Panel\Log\DumpNode $root): string
```

Renders a dump tree, or only the value markup of a scalar or enum case root.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$root` | [`DumpNode`](/docs/extensions/debug-core/reference/panel/log/dumpnode/index.md) |  |

**Returns**

`string`