src/Helpers/FormRenderer.php
protected function fieldsetBegin(array $field)
    {
        $output = '';
        $output .= $this->getWrapper($field['type'], $field['attributes']);
        $titleTag = $field['type'] === 'fieldset' ? 'legend' : 'summary';
        if (!empty($field[$titleTag])) {
            $output .= $this->getWrapper($titleTag, $field['attributes']);
            $output .= $field[$titleTag];
            $output .= $this->getWrapperEnd($titleTag);
        }
        $output .= $this->getWrapper('fieldsetContent');
        if (!empty($field['description'])) {
            $output .= $this->renderDescription($field['description'], true);
        }
        return $output;
    }
protected function fieldsetBegin(array $field)
    {
        $output = '';
        $output .= $this->getWrapper($field['type'], $field['attributes']);
        $titleTag = $field['type'] === 'fieldset' ? 'legend' : 'summary';
        if (!empty($field[$titleTag])) {
            $output .= $this->getWrapper($titleTag, $field['attributes']);
            $output .= $field[$titleTag];
            $output .= $this->getWrapperEnd($titleTag);
        }
        $output .= $this->getWrapper('fieldsetContent');
        if (!empty($field['description'])) {
            $output .= $this->renderDescription($field['description'], true);
        }
        return $output;
    }
protected function fieldsetBegin ( array $ field ) { $ output = '' ; $ output .= $ this -> getWrapper ( $ field [ 'type' ] , $ field [ 'attributes' ] ) ; $ titleTag = $ field [ 'type' ] === 'fieldset' ? 'legend' : 'summary' ; if ( ! empty ( $ field [ $ titleTag ] ) ) { $ output .= $ this -> getWrapper ( $ titleTag , $ field [ 'attributes' ] ) ; $ output .= $ field [ $ titleTag ] ; $ output .= $ this -> getWrapperEnd ( $ titleTag ) ; } $ output .= $ this -> getWrapper ( 'fieldsetContent' ) ; if ( ! empty ( $ field [ 'description' ] ) ) { $ output .= $ this -> renderDescription ( $ field [ 'description' ] , true ) ; } return $ output ; }
Outputs the beginning of a fieldset.

@param array $field

@return string
Outputs the beginning of a fieldset .