Addition of extend for newRowClasses (#4711)

* Addition of extend for newRowClasses

Allows for creation of extension of row classes in gridfield.

* Update GridField.php

Including suggestions by @tractorcow and @dhensby.
This commit is contained in:
Marijn Kampf 2016-04-12 15:48:02 +01:00 committed by Daniel Hensby
parent c7de1f40e1
commit ea3aa0063a

View File

@ -583,6 +583,8 @@ class GridField extends FormField {
$classes[] = 'odd';
}
$this->extend('updateNewRowClasses', $classes, $total, $index, $record);
return $classes;
}