public function getEditForm($id = null, $fields = null)
    {
        /** @var CMSForm $form */
        $form = parent::getEditForm($id, $fields);
        $gridField = $form->Fields()->fieldByName($this->sanitiseClassName($this->modelClass));
        return $this->modifyGridField($form, $gridField);
    }
public function getEditForm($id = null, $fields = null)
    {
        /** @var CMSForm $form */
        $form = parent::getEditForm($id, $fields);
        $gridField = $form->Fields()->fieldByName($this->sanitiseClassName($this->modelClass));
        return $this->modifyGridField($form, $gridField);
    }
public function getEditForm ( $ id = null , $ fields = null ) { /** @var CMSForm $form */ $ form = parent :: getEditForm ( $ id , $ fields ) ; $ gridField = $ form -> Fields ( ) -> fieldByName ( $ this -> sanitiseClassName ( $ this -> modelClass ) ) ; return $ this -> modifyGridField ( $ form , $ gridField ) ; }
Remove the default "add" button and replace it with a customised version for DMS

@return CMSForm
Remove the default add button and replace it with a customised version for DMS