src/View/Helper/Traits/HelperTrait.php
protected function _setBtnClass($button, array $options = [])
    {
        if ($button !== true) {
            $classes = [$this->_configRead('btnPref')];
            foreach ((array) $button as $button) {
                $classes[] = $this->_configRead('btnPref') . '-' . $button;
            }
            $options = $this->_addClass($options, implode(' ', $classes));
        }

        return $options;
    }
protected function _setBtnClass($button, array $options = [])
    {
        if ($button !== true) {
            $classes = [$this->_configRead('btnPref')];
            foreach ((array) $button as $button) {
                $classes[] = $this->_configRead('btnPref') . '-' . $button;
            }
            $options = $this->_addClass($options, implode(' ', $classes));
        }

        return $options;
    }
protected function _setBtnClass ( $ button , array $ options = [ ] ) { if ( $ button !== true ) { $ classes = [ $ this -> _configRead ( 'btnPref' ) ] ; foreach ( ( array ) $ button as $ button ) { $ classes [ ] = $ this -> _configRead ( 'btnPref' ) . '-' . $ button ; } $ options = $ this -> _addClass ( $ options , implode ( ' ' , $ classes ) ) ; } return $ options ; }
Setup button classes by options.

@param   string $button
@param   array $options
@return  array
Setup button classes by options .