Skip to content
PHP Ecosystem
Explore

RowClass

API reference › Debug Core › View › Grid › RowClass

final classPHPForge\Debug\View\Grid\RowClass
Sourcesrc/View/Grid/RowClass.php

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

MethodDescriptionDefined by
for() staticReturns the row-attributes array carrying the yii-debug-row-<variant> CSS class for the given status level.RowClass
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

ParameterTypeDescription
$levelstring|nullStatus keyword, or null to skip the class.

Returns

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