src/Helpers/FormRenderer.php
protected function renderElement($field)
    {
        $type = $field['type'];
        switch ($type) {
            case 'textarea':
            case 'markup':
            case 'select':
            case 'radio':
            case 'checkbox':
                return $this->$type($field);
            default:
                return $this->input($field);
        }
    }
protected function renderElement($field)
    {
        $type = $field['type'];
        switch ($type) {
            case 'textarea':
            case 'markup':
            case 'select':
            case 'radio':
            case 'checkbox':
                return $this->$type($field);
            default:
                return $this->input($field);
        }
    }
protected function renderElement ( $ field ) { $ type = $ field [ 'type' ] ; switch ( $ type ) { case 'textarea' : case 'markup' : case 'select' : case 'radio' : case 'checkbox' : return $ this -> $ type ( $ field ) ; default : return $ this -> input ( $ field ) ; } }
Renders a form field itself, ie without label and description.

@param $field

@return string
The html for the form element.
Renders a form field itself ie without label and description .