Bootstrap\View\Helper\BootstrapPanelHelper::_createBody PHP Method

_createBody() protected method

protected _createBody ( $text = null, $options = [] )
    protected function _createBody($text = null, $options = [])
    {
        $options = $this->addClass($options, 'panel-body');
        $body = $this->Html->tag('div', $text, $options);
        if ($this->_collapsible) {
            $open = $this->_isOpen() ? ' in' : '';
            $body = $this->Html->div('panel-collapse collapse' . $open, $text ? $body : null, ['role' => 'tabpanel', 'aria-labelledby' => $this->_headId, 'id' => $this->_bodyId]) . ($text ? '' : $body);
        }
        $body = $this->_cleanCurrent() . $body;
        if (!$text) {
            $this->current = 'body';
        }
        return $body;
    }