/** * Process report * * @return \Magento\Framework\App\Response\Http */ public function processReport() { $this->pageTitle = 'There has been an error processing your request'; $this->_response->setHttpResponseCode(503); $this->showErrorMsg = false; $this->showSentMsg = false; $this->showSendForm = false; $this->reportAction = $this->_config->action; $this->_setReportUrl(); if ($this->reportAction == 'email') { $this->showSendForm = true; $this->sendReport(); } $this->_response->setBody($this->_renderPage('report.phtml')); return $this->_response; }