addExtraClass('grid-field__filter-buttons'); } /** * {@inheritdoc} */ protected function newRow($total, $index, $record, $attributes, $content) { if (!isset($attributes['class'])) { $attributes['class'] = ''; } if ($record->IsSpam) { $attributes['class'] .= ' spam'; } return HTML::createTag( 'tr', $attributes, $content ); } }