protected function makeField($name, $type = 'text', array $options = [])
    {
        $this->setupFieldOptions($name, $options);

        $fieldName = $this->getFieldName($name);

        $fieldType = $this->getFieldType($type);

        return new $fieldType($fieldName, $type, $this, $options);
    }
protected function makeField($name, $type = 'text', array $options = [])
    {
        $this->setupFieldOptions($name, $options);

        $fieldName = $this->getFieldName($name);

        $fieldType = $this->getFieldType($type);

        return new $fieldType($fieldName, $type, $this, $options);
    }
protected function makeField ( $ name , $ type = 'text' , array $ options = [ ] ) { $ this -> setupFieldOptions ( $ name , $ options ) ; $ fieldName = $ this -> getFieldName ( $ name ) ; $ fieldType = $ this -> getFieldType ( $ type ) ; return new $ fieldType ( $ fieldName , $ type , $ this , $ options ) ; }
Create the FormField object

@param string $name
@param string $type
@param array  $options
@return FormField
Create the FormField object