public function createField($fieldName, $defaultValue = null)
    {
        $fieldType = $this->fieldType;
        $field = $fieldType::create($fieldName, $this->Title, $defaultValue);
        $field->addExtraClass($this->ExtraClass);
        $this->extend('updateCreateField', $field);
        return $field;
    }
public function createField($fieldName, $defaultValue = null)
    {
        $fieldType = $this->fieldType;
        $field = $fieldType::create($fieldName, $this->Title, $defaultValue);
        $field->addExtraClass($this->ExtraClass);
        $this->extend('updateCreateField', $field);
        return $field;
    }
public function createField ( $ fieldName , $ defaultValue = null ) { $ fieldType = $ this -> fieldType ; $ field = $ fieldType :: create ( $ fieldName , $ this -> Title , $ defaultValue ) ; $ field -> addExtraClass ( $ this -> ExtraClass ) ; $ this -> extend ( 'updateCreateField' , $ field ) ; return $ field ; }
Create the actual field
Overwrite this on the field subclass

@param $fieldName string Created by the AttendeeField
@param $defaultValue string Set a default value

@return FormField
Create the actual field Overwrite this on the field subclass