src/Forms/Form.php
public function Fields()
    {
        foreach ($this->getExtraFields() as $field) {
            if (!$this->fields->fieldByName($field->getName())) {
                $this->fields->push($field);
            }
        }

        return $this->fields;
    }
public function Fields()
    {
        foreach ($this->getExtraFields() as $field) {
            if (!$this->fields->fieldByName($field->getName())) {
                $this->fields->push($field);
            }
        }

        return $this->fields;
    }
public function Fields ( ) { foreach ( $ this -> getExtraFields ( ) as $ field ) { if ( ! $ this -> fields -> fieldByName ( $ field -> getName ( ) ) ) { $ this -> fields -> push ( $ field ) ; } } return $ this -> fields ; }
Return the form's fields - used by the templates

@return FieldList The form fields
Return the form s fields - used by the templates