src/Forms/DefaultFormFactory.php
protected function getFormFields(RequestHandler $controller = null, $name, $context = [])
    {
        // Fall back to standard "getCMSFields" which itself uses the FormScaffolder as a fallback
        // @todo Deprecate or formalise support for getCMSFields()
        $fields = $context['Record']->getCMSFields();
        $this->invokeWithExtensions('updateFormFields', $fields, $controller, $name, $context);
        return $fields;
    }
protected function getFormFields(RequestHandler $controller = null, $name, $context = [])
    {
        // Fall back to standard "getCMSFields" which itself uses the FormScaffolder as a fallback
        // @todo Deprecate or formalise support for getCMSFields()
        $fields = $context['Record']->getCMSFields();
        $this->invokeWithExtensions('updateFormFields', $fields, $controller, $name, $context);
        return $fields;
    }
protected function getFormFields ( RequestHandler $ controller = null , $ name , $ context = [ ] ) { // Fall back to standard "getCMSFields" which itself uses the FormScaffolder as a fallback // @todo Deprecate or formalise support for getCMSFields() $ fields = $ context [ 'Record' ] -> getCMSFields ( ) ; $ this -> invokeWithExtensions ( 'updateFormFields' , $ fields , $ controller , $ name , $ context ) ; return $ fields ; }
Build field list for this form

@param RequestHandler $controller
@param string $name
@param array $context
@return FieldList
Build field list for this form