src/Toolbar/ToolbarHelper.php
public static function cancel($title = null, $url = null, array $options = [])
    {
        $toolbar = Toolbar::getInstance(self::$_toolbar);
        $options += [
            'icon'      => 'close',
            'iconClass' => 'ckTextRed',
            'button'    => 'grey lighten-3'
        ];

        if (empty($url)) {
            $url = ['action' => 'index'];
        }

        $title = (empty($title)) ? __d('core', 'Cancel') : $title;

        $toolbar->appendButton('Core.link', $title, $url, $options);
    }
public static function cancel($title = null, $url = null, array $options = [])
    {
        $toolbar = Toolbar::getInstance(self::$_toolbar);
        $options += [
            'icon'      => 'close',
            'iconClass' => 'ckTextRed',
            'button'    => 'grey lighten-3'
        ];

        if (empty($url)) {
            $url = ['action' => 'index'];
        }

        $title = (empty($title)) ? __d('core', 'Cancel') : $title;

        $toolbar->appendButton('Core.link', $title, $url, $options);
    }
public static function cancel ( $ title = null , $ url = null , array $ options = [ ] ) { $ toolbar = Toolbar :: getInstance ( self :: $ _toolbar ) ; $ options += [ 'icon' => 'close' , 'iconClass' => 'ckTextRed' , 'button' => 'grey lighten-3' ] ; if ( empty ( $ url ) ) { $ url = [ 'action' => 'index' ] ; } $ title = ( empty ( $ title ) ) ? __d ( 'core' , 'Cancel' ) : $ title ; $ toolbar -> appendButton ( 'Core.link' , $ title , $ url , $ options ) ; }
Cancel form button.

@param string|null $title
@param null|string|array $url
@param array $options
@return void
Cancel form button .