src/OpenCart/Helpers/OcHelper.php
public function confirmUninstall()
    {
        // @todo: implement uninstall form
//        $this->displayFormCommon('uninstall');
//
//        // Are we confirming, or should we show the confirm message?
//        if ($this->registry->request->server['REQUEST_METHOD'] === 'POST') {
            $this->doUninstall();
            $this->registry->response->redirect($this->registry->getLink($this->getRedirectUrl()));
//        }
//
//        // Add an intermediate level to the breadcrumb.
//        $this->data['breadcrumbs'][] = array(
//            'text' => $this->t('modules'),
//            'href' => $this->registry->getLink('extension/module',),
//            'separator' => ' :: '
//        );
//
//        $this->renderFormCommon('confirmUninstall', 'button_confirm_uninstall');
    }
public function confirmUninstall()
    {
        // @todo: implement uninstall form
//        $this->displayFormCommon('uninstall');
//
//        // Are we confirming, or should we show the confirm message?
//        if ($this->registry->request->server['REQUEST_METHOD'] === 'POST') {
            $this->doUninstall();
            $this->registry->response->redirect($this->registry->getLink($this->getRedirectUrl()));
//        }
//
//        // Add an intermediate level to the breadcrumb.
//        $this->data['breadcrumbs'][] = array(
//            'text' => $this->t('modules'),
//            'href' => $this->registry->getLink('extension/module',),
//            'separator' => ' :: '
//        );
//
//        $this->renderFormCommon('confirmUninstall', 'button_confirm_uninstall');
    }
public function confirmUninstall ( ) { // @todo: implement uninstall form //        $this->displayFormCommon('uninstall'); // //        // Are we confirming, or should we show the confirm message? //        if ($this->registry->request->server['REQUEST_METHOD'] === 'POST') { $ this -> doUninstall ( ) ; $ this -> registry -> response -> redirect ( $ this -> registry -> getLink ( $ this -> getRedirectUrl ( ) ) ) ; //        } // //        // Add an intermediate level to the breadcrumb. //        $this->data['breadcrumbs'][] = array( //            'text' => $this->t('modules'), //            'href' => $this->registry->getLink('extension/module',), //            'separator' => ' :: ' //        ); // //        $this->renderFormCommon('confirmUninstall', 'button_confirm_uninstall'); }
Explicit confirmation step to allow to retain the settings.

The normal uninstall action will unconditionally delete all settings.

@throws \Exception
Explicit confirmation step to allow to retain the settings .