src/Helpers/FormRenderer.php
protected function input(array $field)
    {
        $output = '';

        // Tag around input element.
        $output .= $this->getWrapper('input');

        $attributes = $field['attributes'];
        $attributes = $this->addAttribute($attributes, 'type', $field['type']);
        $attributes = $this->addAttribute($attributes, 'id', $field['id']);
        $attributes = $this->addAttribute($attributes, 'name', $field['name']);
        $attributes = $this->addAttribute($attributes, 'value', $field['value']);
        $output .= $this->getOpenTag('input', $attributes, true);

        // Tag around input element.
        $output .= $this->getWrapperEnd('input');

        return $output;
    }
protected function input(array $field)
    {
        $output = '';

        // Tag around input element.
        $output .= $this->getWrapper('input');

        $attributes = $field['attributes'];
        $attributes = $this->addAttribute($attributes, 'type', $field['type']);
        $attributes = $this->addAttribute($attributes, 'id', $field['id']);
        $attributes = $this->addAttribute($attributes, 'name', $field['name']);
        $attributes = $this->addAttribute($attributes, 'value', $field['value']);
        $output .= $this->getOpenTag('input', $attributes, true);

        // Tag around input element.
        $output .= $this->getWrapperEnd('input');

        return $output;
    }
protected function input ( array $ field ) { $ output = '' ; // Tag around input element. $ output .= $ this -> getWrapper ( 'input' ) ; $ attributes = $ field [ 'attributes' ] ; $ attributes = $ this -> addAttribute ( $ attributes , 'type' , $ field [ 'type' ] ) ; $ attributes = $ this -> addAttribute ( $ attributes , 'id' , $ field [ 'id' ] ) ; $ attributes = $ this -> addAttribute ( $ attributes , 'name' , $ field [ 'name' ] ) ; $ attributes = $ this -> addAttribute ( $ attributes , 'value' , $ field [ 'value' ] ) ; $ output .= $ this -> getOpenTag ( 'input' , $ attributes , true ) ; // Tag around input element. $ output .= $ this -> getWrapperEnd ( 'input' ) ; return $ output ; }
Renders an input field.

@param array $field

@return string
The rendered input field.
Renders an input field .