src/View/Helper/FormHelper.php
public function buttonToolbar(array $buttonGroups, array $options = array()) {
        $options += [
            'templateVars' => []
        ];
        return $this->formatTemplate('buttonToolbar', [
            'content' => implode('', $buttonGroups),
            'attrs' => $this->templater()->formatAttributes($options, ['vertical']),
            'templateVars' => $options['templateVars']
        ]);
    }
public function buttonToolbar(array $buttonGroups, array $options = array()) {
        $options += [
            'templateVars' => []
        ];
        return $this->formatTemplate('buttonToolbar', [
            'content' => implode('', $buttonGroups),
            'attrs' => $this->templater()->formatAttributes($options, ['vertical']),
            'templateVars' => $options['templateVars']
        ]);
    }
public function buttonToolbar ( array $ buttonGroups , array $ options = array ( ) ) { $ options += [ 'templateVars' => [ ] ] ; return $ this -> formatTemplate ( 'buttonToolbar' , [ 'content' => implode ( '' , $ buttonGroups ) , 'attrs' => $ this -> templater ( ) -> formatAttributes ( $ options , [ 'vertical' ] ) , 'templateVars' => $ options [ 'templateVars' ] ] ) ; }
Creates a button toolbar using the given button groups.

@param array $buttonGroups Array of groups for the toolbar
@param array $options Array of options for the `Html::div` method.

@return string A HTML string containing the button toolbar.
Creates a button toolbar using the given button groups .