mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
Add extension hook after re-ordering items
This commit is contained in:
parent
1d25be7bdd
commit
91b3550ab8
@ -45,6 +45,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
* @param string $sortField
|
||||
*/
|
||||
public function __construct($sortField = 'Sort') {
|
||||
parent::__construct();
|
||||
$this->sortField = $sortField;
|
||||
}
|
||||
|
||||
@ -351,6 +352,8 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
$this->extend('onAfterReorderItems', $list);
|
||||
}
|
||||
|
||||
protected function populateSortValues(DataList $list) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user