src/GridFieldEditableColumns.php
public function getForm(GridField $grid, DataObjectInterface $record)
    {
        $fields = $this->getFields($grid, $record);

        $form = new Form($grid, null, $fields, new FieldList());
        $form->loadDataFrom($record);

        $form->setFormAction(Controller::join_links(
            $grid->Link(),
            'editable/form',
            $record->ID
        ));

        return $form;
    }
public function getForm(GridField $grid, DataObjectInterface $record)
    {
        $fields = $this->getFields($grid, $record);

        $form = new Form($grid, null, $fields, new FieldList());
        $form->loadDataFrom($record);

        $form->setFormAction(Controller::join_links(
            $grid->Link(),
            'editable/form',
            $record->ID
        ));

        return $form;
    }
public function getForm ( GridField $ grid , DataObjectInterface $ record ) { $ fields = $ this -> getFields ( $ grid , $ record ) ; $ form = new Form ( $ grid , null , $ fields , new FieldList ( ) ) ; $ form -> loadDataFrom ( $ record ) ; $ form -> setFormAction ( Controller :: join_links ( $ grid -> Link ( ) , 'editable/form' , $ record -> ID ) ) ; return $ form ; }
Gets the form instance for a record.

@param GridField $grid
@param DataObjectInterface $record
@return Form
Gets the form instance for a record .