scopeConfig = $scopeConfig; $this->storeManager = $storeManager; $this->path = $path; } /** * {@inheritdoc} */ public function prepare() { parent::prepare(); $store = $this->storeManager->getStore(); $this->_data['config']['default'] = $this->scopeConfig->getValue( $this->path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store ); } }