original_string: protected function initSidenav($sidenavId)
      {
          $this->sidenavToggleButtonOptions = ArrayHelper::merge([
              'label' => false,
              'icon' => [
                  'name' => 'menu'
              ],
              'type' => Button::TYPE_FLAT,
          ], $this->sidenavToggleButtonOptions);
  
          if (!isset($this->sidenavToggleButtonOptions['options']['data-target'])) {
              $this->sidenavToggleButtonOptions['options']['data-target'] = $sidenavId;
          }
  
          Html::addCssClass($this->sidenavToggleButtonOptions['options'], ['trigger' => 'sidenav-trigger']);
      }
code: protected function initSidenav($sidenavId)
      {
          $this->sidenavToggleButtonOptions = ArrayHelper::merge([
              'label' => false,
              'icon' => [
                  'name' => 'menu'
              ],
              'type' => Button::TYPE_FLAT,
          ], $this->sidenavToggleButtonOptions);
  
          if (!isset($this->sidenavToggleButtonOptions['options']['data-target'])) {
              $this->sidenavToggleButtonOptions['options']['data-target'] = $sidenavId;
          }
  
          Html::addCssClass($this->sidenavToggleButtonOptions['options'], ['trigger' => 'sidenav-trigger']);
      }
code_tokens: protected function initSidenav ( $ sidenavId ) { $ this -> sidenavToggleButtonOptions = ArrayHelper :: merge ( [ 'label' => false , 'icon' => [ 'name' => 'menu' ] , 'type' => Button :: TYPE_FLAT , ] , $ this -> sidenavToggleButtonOptions ) ; if ( ! isset ( $ this -> sidenavToggleButtonOptions [ 'options' ] [ 'data-target' ] ) ) { $ this -> sidenavToggleButtonOptions [ 'options' ] [ 'data-target' ] = $ sidenavId ; } Html :: addCssClass ( $ this -> sidenavToggleButtonOptions [ 'options' ] , [ 'trigger' => 'sidenav-trigger' ] ) ; }
docstring: Initializes the side nav options.
  
  @param string $sidenavId the side nav element's HTML id attribute.
docstring_tokens: Initializes the side nav options .