private function getRecordEditingFields(DataObject $record)
    {
        $tempForm = Form::create(
            $this,
            'TempEditForm',
            $record->getCMSFields(),
            FieldList::create()
        );

        $tempForm->loadDataFrom($record);
        $fields = $tempForm->Fields();

        $fields = $this->filterRecordEditingFields($fields, $record->ID);

        return $fields;
    }
private function getRecordEditingFields(DataObject $record)
    {
        $tempForm = Form::create(
            $this,
            'TempEditForm',
            $record->getCMSFields(),
            FieldList::create()
        );

        $tempForm->loadDataFrom($record);
        $fields = $tempForm->Fields();

        $fields = $this->filterRecordEditingFields($fields, $record->ID);

        return $fields;
    }
private function getRecordEditingFields ( DataObject $ record ) { $ tempForm = Form :: create ( $ this , 'TempEditForm' , $ record -> getCMSFields ( ) , FieldList :: create ( ) ) ; $ tempForm -> loadDataFrom ( $ record ) ; $ fields = $ tempForm -> Fields ( ) ; $ fields = $ this -> filterRecordEditingFields ( $ fields , $ record -> ID ) ; return $ fields ; }
Returns a record's populated form fields
with all filtering done ready to be included in the main form.

@uses DataObject::getCMSFields()

@param DataObject $record The record to get the fields from

@return array The record's editable fields
Returns a record s populated form fields with all filtering done ready to be included in the main form .