# RowClass

> Maps status keywords onto the yii-debug-row-<variant> row classes used by the debug grids.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [View](/docs/extensions/debug-core/reference/view/index.md) › [Grid](/docs/extensions/debug-core/reference/view/grid/index.md) › RowClass

| final class | `PHPForge\Debug\View\Grid\RowClass` |
| --- | --- |
| Source | [`src/View/Grid/RowClass.php`](https://github.com/php-forge/debug-core/blob/main/src/View/Grid/RowClass.php#L14) |

Maps status keywords onto the `yii-debug-row-<variant>` row classes used by the debug grids.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`for()`](#method-for) static | Returns the row-attributes array carrying the `yii-debug-row-<variant>` CSS class for the given status level. | `RowClass` |

## Method details

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

```php
public static function for(string|null $level): array<string, mixed>
```

Returns the row-attributes array carrying the `yii-debug-row-<variant>` CSS class for the given status level.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$level` | `string\|null` | Status keyword, or `null` to skip the class. |

**Returns**

`array<string, mixed>`: Row-attributes array with the `class` key set, or `[]` for unknown/`null` levels.