protected function _getDefaultExtraLeftButtons()
    {
        $buttons = [];

        $action = $this->_action();
        if ($action instanceof EditAction) {
            $buttons[] = [
                'title' => __d('crud', 'Delete'),
                'url' => ['action' => 'delete'],
                'options' => [
                    'block' => 'form.after_end',
                    'class' => 'btn btn-danger btn-delete',
                    'confirm' => __d('crud', 'Are you sure you want to delete this record?'),
                    'name' => '_delete',
                    'style' => 'margin-left: 0',
                ],
                'type' => 'postLink',
                '_label' => 'delete',
            ];
        }

        return $buttons;
    }
protected function _getDefaultExtraLeftButtons()
    {
        $buttons = [];

        $action = $this->_action();
        if ($action instanceof EditAction) {
            $buttons[] = [
                'title' => __d('crud', 'Delete'),
                'url' => ['action' => 'delete'],
                'options' => [
                    'block' => 'form.after_end',
                    'class' => 'btn btn-danger btn-delete',
                    'confirm' => __d('crud', 'Are you sure you want to delete this record?'),
                    'name' => '_delete',
                    'style' => 'margin-left: 0',
                ],
                'type' => 'postLink',
                '_label' => 'delete',
            ];
        }

        return $buttons;
    }
protected function _getDefaultExtraLeftButtons ( ) { $ buttons = [ ] ; $ action = $ this -> _action ( ) ; if ( $ action instanceof EditAction ) { $ buttons [ ] = [ 'title' => __d ( 'crud' , 'Delete' ) , 'url' => [ 'action' => 'delete' ] , 'options' => [ 'block' => 'form.after_end' , 'class' => 'btn btn-danger btn-delete' , 'confirm' => __d ( 'crud' , 'Are you sure you want to delete this record?' ) , 'name' => '_delete' , 'style' => 'margin-left: 0' , ] , 'type' => 'postLink' , '_label' => 'delete' , ] ; } return $ buttons ; }
Get default extra left buttons

@return array
Get default extra left buttons