RowClass
API reference › Debug Core › View › Grid › RowClass
Maps status keywords onto the yii-debug-row-<variant> row classes used by the debug grids.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
for() static | Returns the row-attributes array carrying the yii-debug-row-<variant> CSS class for the given status level. | RowClass |
Method details
Section titled “Method details”for()
Section titled “for() ”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| | 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.