public function applyButtonClasses(array $data)
    {
        if ($this->hasAnyClass($this->buttonClasses, $data)) {
            $data = $this->injectClasses(['btn'], $data);
        } else {
            $data = $this->injectClasses(['btn', 'btn-default'], $data);
        }

        return $this->renameClasses($this->buttonClassAliases, $data);
    }
public function applyButtonClasses(array $data)
    {
        if ($this->hasAnyClass($this->buttonClasses, $data)) {
            $data = $this->injectClasses(['btn'], $data);
        } else {
            $data = $this->injectClasses(['btn', 'btn-default'], $data);
        }

        return $this->renameClasses($this->buttonClassAliases, $data);
    }
public function applyButtonClasses ( array $ data ) { if ( $ this -> hasAnyClass ( $ this -> buttonClasses , $ data ) ) { $ data = $ this -> injectClasses ( [ 'btn' ] , $ data ) ; } else { $ data = $ this -> injectClasses ( [ 'btn' , 'btn-default' ] , $ data ) ; } return $ this -> renameClasses ( $ this -> buttonClassAliases , $ data ) ; }
Contains the logic for applying style classes for buttons.

@param array $data An array of HTML attributes and options.
@return array An array of HTML attributes and options.
Contains the logic for applying style classes for buttons .