src/Helpers/FormRenderer.php
protected function getWrapper($type, array $attributes = array())
    {
        $tag = "{$type}WrapperTag";
        $class = "{$type}WrapperClass";
        $output = '';
        if (!empty($this->$tag)) {
            if (!empty($this->$class)) {
                $attributes = $this->addAttribute($attributes, 'class', $this->$class);
            }
            $output .= $this->getOpenTag($this->$tag, $attributes);
        }
        return $output;
    }
protected function getWrapper($type, array $attributes = array())
    {
        $tag = "{$type}WrapperTag";
        $class = "{$type}WrapperClass";
        $output = '';
        if (!empty($this->$tag)) {
            if (!empty($this->$class)) {
                $attributes = $this->addAttribute($attributes, 'class', $this->$class);
            }
            $output .= $this->getOpenTag($this->$tag, $attributes);
        }
        return $output;
    }
protected function getWrapper ( $ type , array $ attributes = array ( ) ) { $ tag = "{$type}WrapperTag" ; $ class = "{$type}WrapperClass" ; $ output = '' ; if ( ! empty ( $ this -> $ tag ) ) { if ( ! empty ( $ this -> $ class ) ) { $ attributes = $ this -> addAttribute ( $ attributes , 'class' , $ this -> $ class ) ; } $ output .= $ this -> getOpenTag ( $ this -> $ tag , $ attributes ) ; } return $ output ; }
Returns the open tag for a wrapper element.

@param string $type
@param array $attributes

@return string
Returns the open tag for a wrapper element .