original_string: protected function renderToggleButton()
      {
          if (!isset($this->toggleButtonOptions['options']['data-target'])) {
              $this->toggleButtonOptions['options']['data-target'] = $this->options['id'];
          }
          Html::addCssClass($this->toggleButtonOptions['options'], ['toggle-button' => 'dropdown-trigger']);
  
          return Button::widget($this->toggleButtonOptions);
      }
code: protected function renderToggleButton()
      {
          if (!isset($this->toggleButtonOptions['options']['data-target'])) {
              $this->toggleButtonOptions['options']['data-target'] = $this->options['id'];
          }
          Html::addCssClass($this->toggleButtonOptions['options'], ['toggle-button' => 'dropdown-trigger']);
  
          return Button::widget($this->toggleButtonOptions);
      }
code_tokens: protected function renderToggleButton ( ) { if ( ! isset ( $ this -> toggleButtonOptions [ 'options' ] [ 'data-target' ] ) ) { $ this -> toggleButtonOptions [ 'options' ] [ 'data-target' ] = $ this -> options [ 'id' ] ; } Html :: addCssClass ( $ this -> toggleButtonOptions [ 'options' ] , [ 'toggle-button' => 'dropdown-trigger' ] ) ; return Button :: widget ( $ this -> toggleButtonOptions ) ; }
docstring: Renders the dropdown toggle button.
  
  @return string the markup of the toggle button.
  @throws \Exception
docstring_tokens: Renders the dropdown toggle button .