View/Helper/BootstrapFormHelper.php
public function btnCancel($title = '', $options = [])
    {
        $title = empty($title) ? __('Cancel') : $title;
        $options = array_merge([
            'class' => 'btn btn-danger',
            'type' => 'reset',
            'data-dismiss' => 'modal',
        ], $options);
        return parent::button($title, $options);
    }
public function btnCancel($title = '', $options = [])
    {
        $title = empty($title) ? __('Cancel') : $title;
        $options = array_merge([
            'class' => 'btn btn-danger',
            'type' => 'reset',
            'data-dismiss' => 'modal',
        ], $options);
        return parent::button($title, $options);
    }
public function btnCancel ( $ title = '' , $ options = [ ] ) { $ title = empty ( $ title ) ? __ ( 'Cancel' ) : $ title ; $ options = array_merge ( [ 'class' => 'btn btn-danger' , 'type' => 'reset' , 'data-dismiss' => 'modal' , ] , $ options ) ; return parent :: button ( $ title , $ options ) ; }
Creates a cancel button. Used to dismiss modals

@param string $title
@param array  $options
@return string
Creates a cancel button . Used to dismiss modals