src/GridFieldOrderableRows.php
public function handleSave(GridField $grid, DataObjectInterface $record)
    {
        if (!$this->immediateUpdate) {
            $value = $grid->Value();
            $sortedIDs = $this->getSortedIDs($value);
            if ($sortedIDs) {
                $this->executeReorder($grid, $sortedIDs);
            }
        }
    }
public function handleSave(GridField $grid, DataObjectInterface $record)
    {
        if (!$this->immediateUpdate) {
            $value = $grid->Value();
            $sortedIDs = $this->getSortedIDs($value);
            if ($sortedIDs) {
                $this->executeReorder($grid, $sortedIDs);
            }
        }
    }
public function handleSave ( GridField $ grid , DataObjectInterface $ record ) { if ( ! $ this -> immediateUpdate ) { $ value = $ grid -> Value ( ) ; $ sortedIDs = $ this -> getSortedIDs ( $ value ) ; if ( $ sortedIDs ) { $ this -> executeReorder ( $ grid , $ sortedIDs ) ; } } }
Handle saving when 'immediateUpdate' is disabled, otherwise this isn't
necessary for the default sort mode.
Handle saving when immediateUpdate is disabled otherwise this isn t necessary for the default sort mode .