%PDF- %PDF-productMetadata = $productMetadata; $this->moduleReader = $moduleReader; $this->filesystem = $filesystem; $this->json = $json; } /** * Get Store config values * * @param string $path * @return mixed */ public function getStoreConfig($path) { return $this->scopeConfig->getValue($path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE); } /** * @return boolean */ public function isEnablePopup() { return $this->getStoreConfig('bss_core/setting/enable_popup'); } /** * @return String */ public function getCustomCss() { return $this->getStoreConfig('bss_core/setting/additional_css'); } /** * @return boolean */ public function isEnablePreprocessedCss() { return $this->getStoreConfig('bss_core/setting/enable_preprocessed_css'); } /** * Get current Magento version. * * @return string */ public function getMagentoVersion() { return $this->productMetadata->getVersion(); } /** * Get current Magento relative version. * * @return string */ public function getMagentoRelativeVersion() { $magentoVer = $this->getMagentoVersion(); $relativeVerTemp = explode('.', $magentoVer); if (empty($relativeVerTemp)) { return ''; } unset($relativeVerTemp[count($relativeVerTemp) - 1]); $relativeVerTemp[] = 'x'; $relativeVer = implode('.', $relativeVerTemp); return $relativeVer; } /** * Get current Magento Edition. * * @return string */ public function getMagentoEdition() { return $this->productMetadata->getEdition(); } /** * Is module enabled? * * @param string $moduleName * @return bool */ public function isModuleEnable($moduleName) { return $this->_moduleManager->isEnabled($moduleName); } }