original_string: private function _getBodyToolbar()
      {
          if ($this->bodyToolbar !== null) {
              Html::addCssClass($this->bodyToolbarOptions, 'widget-body-toolbar');
              $toolbars = is_string($this->bodyToolbar) ? [$this->bodyToolbar] : $this->bodyToolbar;
              foreach ($toolbars as $toolbar) {
                  if (is_array($toolbar)) {
                      $body = isset($toolbar['body']) ? $toolbar['body'] : null;
                      $options = isset($toolbar['options']) ? $toolbar['options'] : [];
                      Html::addCssClass($options, 'widget-body-toolbar');
                      echo Html::tag('div', $body, $options);
                  } else {
                      echo Html::tag('div', $toolbar, $this->bodyToolbarOptions);
                  }
              }
          }
      }
code: private function _getBodyToolbar()
      {
          if ($this->bodyToolbar !== null) {
              Html::addCssClass($this->bodyToolbarOptions, 'widget-body-toolbar');
              $toolbars = is_string($this->bodyToolbar) ? [$this->bodyToolbar] : $this->bodyToolbar;
              foreach ($toolbars as $toolbar) {
                  if (is_array($toolbar)) {
                      $body = isset($toolbar['body']) ? $toolbar['body'] : null;
                      $options = isset($toolbar['options']) ? $toolbar['options'] : [];
                      Html::addCssClass($options, 'widget-body-toolbar');
                      echo Html::tag('div', $body, $options);
                  } else {
                      echo Html::tag('div', $toolbar, $this->bodyToolbarOptions);
                  }
              }
          }
      }
code_tokens: private function _getBodyToolbar ( ) { if ( $ this -> bodyToolbar !== null ) { Html :: addCssClass ( $ this -> bodyToolbarOptions , 'widget-body-toolbar' ) ; $ toolbars = is_string ( $ this -> bodyToolbar ) ? [ $ this -> bodyToolbar ] : $ this -> bodyToolbar ; foreach ( $ toolbars as $ toolbar ) { if ( is_array ( $ toolbar ) ) { $ body = isset ( $ toolbar [ 'body' ] ) ? $ toolbar [ 'body' ] : null ; $ options = isset ( $ toolbar [ 'options' ] ) ? $ toolbar [ 'options' ] : [ ] ; Html :: addCssClass ( $ options , 'widget-body-toolbar' ) ; echo Html :: tag ( 'div' , $ body , $ options ) ; } else { echo Html :: tag ( 'div' , $ toolbar , $ this -> bodyToolbarOptions ) ; } } } }
docstring: Get body toolbar
docstring_tokens: Get body toolbar