original_string: protected function renderCollapsible($link, $items = [], $isParentActive = false)
      {
          $itemOptions = [];
          if ($isParentActive) {
              Html::addCssClass($itemOptions, ['item-activation' => 'active']);
          }
  
          $collapsibleItems = [
              [
                  'header' => ['content' => $link],
                  'body' => ['content' => $this->buildCollapsibleBody($items)],
                  'options' => $itemOptions
              ],
          ];
  
          return Collapsible::widget([
              'items' => $collapsibleItems,
              'type' => Collapsible::TYPE_ACCORDION,
          ]);
      }
code: protected function renderCollapsible($link, $items = [], $isParentActive = false)
      {
          $itemOptions = [];
          if ($isParentActive) {
              Html::addCssClass($itemOptions, ['item-activation' => 'active']);
          }
  
          $collapsibleItems = [
              [
                  'header' => ['content' => $link],
                  'body' => ['content' => $this->buildCollapsibleBody($items)],
                  'options' => $itemOptions
              ],
          ];
  
          return Collapsible::widget([
              'items' => $collapsibleItems,
              'type' => Collapsible::TYPE_ACCORDION,
          ]);
      }
code_tokens: protected function renderCollapsible ( $ link , $ items = [ ] , $ isParentActive = false ) { $ itemOptions = [ ] ; if ( $ isParentActive ) { Html :: addCssClass ( $ itemOptions , [ 'item-activation' => 'active' ] ) ; } $ collapsibleItems = [ [ 'header' => [ 'content' => $ link ] , 'body' => [ 'content' => $ this -> buildCollapsibleBody ( $ items ) ] , 'options' => $ itemOptions ] , ] ; return Collapsible :: widget ( [ 'items' => $ collapsibleItems , 'type' => Collapsible :: TYPE_ACCORDION , ] ) ; }
docstring: Renders a submenu as Collapsible in side navigation element.
  
  @param string $link the trigger link.
  @param array $items the submenu items.
  @param bool $isParentActive whether the submenu's parent list element shall get an 'active' state.
  @return string the Collapsible markup.
  
  @throws \Exception
docstring_tokens: Renders a submenu as Collapsible in side navigation element .