src/View/Helper/PanelHelper.php
public function startGroup($options = []) {
        $options += [
            'id'                   => 'panelGroup-'.(++$this->_groupCount),
            'collapsible'          => true,
            'open'                 => 0,
            'templateVars' => []
        ];
        $this->_states->push('group', [
            'groupPanelOpen' => $options['open'],
            'groupPanelCount' => -1,
            'groupId' => $options['id'],
            'groupCollapsible' => $options['collapsible']
        ]);
        return $this->formatTemplate('panelGroupStart', [
            'attrs' => $this->templater()->formatAttributes($options, ['open', 'collapsible']),
            'templateVars' => $options['templateVars']
        ]);
    }
public function startGroup($options = []) {
        $options += [
            'id'                   => 'panelGroup-'.(++$this->_groupCount),
            'collapsible'          => true,
            'open'                 => 0,
            'templateVars' => []
        ];
        $this->_states->push('group', [
            'groupPanelOpen' => $options['open'],
            'groupPanelCount' => -1,
            'groupId' => $options['id'],
            'groupCollapsible' => $options['collapsible']
        ]);
        return $this->formatTemplate('panelGroupStart', [
            'attrs' => $this->templater()->formatAttributes($options, ['open', 'collapsible']),
            'templateVars' => $options['templateVars']
        ]);
    }
public function startGroup ( $ options = [ ] ) { $ options += [ 'id' => 'panelGroup-' . ( ++ $ this -> _groupCount ) , 'collapsible' => true , 'open' => 0 , 'templateVars' => [ ] ] ; $ this -> _states -> push ( 'group' , [ 'groupPanelOpen' => $ options [ 'open' ] , 'groupPanelCount' => - 1 , 'groupId' => $ options [ 'id' ] , 'groupCollapsible' => $ options [ 'collapsible' ] ] ) ; return $ this -> formatTemplate ( 'panelGroupStart' , [ 'attrs' => $ this -> templater ( ) -> formatAttributes ( $ options , [ 'open' , 'collapsible' ] ) , 'templateVars' => $ options [ 'templateVars' ] ] ) ; }
Open a panel group.

### Options

- `collapsible` Set to `false` if panels should not be collapsible. Default is `true`.
- `id` Identifier for the group. Default is automatically generated.
- `open` If `collapsible` is `true`, indicate the panel that should be open by default.
Set to `false` to have no panels open. You can also indicate if a panel should be open
in the `create()` method. Default is `0`.

- Other attributes will be passed to the `Html::div()` method.

@param array $options Array of options. See above.

@return string A formated opening HTML tag for panel groups.

@link http://getbootstrap.com/javascript/#collapse-example-accordion
Open a panel group .