file = $file; parent::__construct($context, $data); } /** * @return void */ public function _construct() { $this->_controller = 'adminhtml_logviewer'; $this->_headerText = __('Log Viewer'); parent::_construct(); } /** * Get log file content * * @return string */ public function getLogFileContent() { return nl2br($this->_escaper->escapeHtml($this->file->getLogFileContent())); } /** * @return string */ public function getAjaxUrl() { return $this->getUrl('dotdigitalgroup_email/connector/ajaxlogcontent'); } }