_scopeConfig = $context->getScopeConfig(); $this->_wpHelper = $helper; parent::__construct($context, $data); } /** * check if module enabled and ajax mode is enabled * * @return bool */ public function isLnEnabled() { $is = false; if($this->_wpHelper->isEnabled()) { $is = ($this->_wpHelper->isAjaxEnabled()) ? true : false; } return $is; } }