src/View/Helper/PanelHelper.php
protected function _cleanCurrent() {
        if (!$this->_states->is('panel')) {
            return '';
        }
        $current = $this->_states->getValue('part');
        if ($current === null) {
            return '';
        }
        $out = $this->formatTemplate($current.'End', []);
        if ($this->_states->getValue('collapsible')) {
            $ctplt = $current.'CollapsibleEnd';
            if ($this->getTemplates($ctplt)) {
                $out = $this->formatTemplate($ctplt, [
                    $current.'End' => $out
                ]);
            }
        }
        $this->_states->setValue('part', null);
        return $out;
    }
protected function _cleanCurrent() {
        if (!$this->_states->is('panel')) {
            return '';
        }
        $current = $this->_states->getValue('part');
        if ($current === null) {
            return '';
        }
        $out = $this->formatTemplate($current.'End', []);
        if ($this->_states->getValue('collapsible')) {
            $ctplt = $current.'CollapsibleEnd';
            if ($this->getTemplates($ctplt)) {
                $out = $this->formatTemplate($ctplt, [
                    $current.'End' => $out
                ]);
            }
        }
        $this->_states->setValue('part', null);
        return $out;
    }
protected function _cleanCurrent ( ) { if ( ! $ this -> _states -> is ( 'panel' ) ) { return '' ; } $ current = $ this -> _states -> getValue ( 'part' ) ; if ( $ current === null ) { return '' ; } $ out = $ this -> formatTemplate ( $ current . 'End' , [ ] ) ; if ( $ this -> _states -> getValue ( 'collapsible' ) ) { $ ctplt = $ current . 'CollapsibleEnd' ; if ( $ this -> getTemplates ( $ ctplt ) ) { $ out = $ this -> formatTemplate ( $ ctplt , [ $ current . 'End' => $ out ] ) ; } } $ this -> _states -> setValue ( 'part' , null ) ; return $ out ; }
Cleans the current panel part and return necessary HTML closing elements.

@return string An HTML string containing closing elements.
Cleans the current panel part and return necessary HTML closing elements .