Exemplo n.º 1
0
 /**
  * Rewrite in order to clear configuration cache
  *
  * @return $this
  */
 public function afterDelete()
 {
     $this->_storeManager->reinitStores();
     parent::afterDelete();
     return $this;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  *
  * @param \Magento\Framework\App\RequestInterface $request
  * @return string
  */
 public function getCurrentSecureUrl(\Magento\Framework\App\RequestInterface $request)
 {
     $alias = $request->getAlias(\Magento\Framework\Url::REWRITE_REQUEST_PATH_ALIAS) ?: $request->getPathInfo();
     return $this->storeManager->getStore()->getBaseUrl('link', true) . ltrim($alias, '/');
 }
Exemplo n.º 3
0
 /**
  * Retrieve config
  *
  * @return string
  */
 public function getConfigData($config)
 {
     $store = $this->_storeManager->getStore()->getId();
     return $this->_scopeConfig->getValue($config, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store);
 }
Exemplo n.º 4
0
 /**
  * Rewrite in order to clear configuration cache
  *
  * @return $this
  */
 protected function _afterDelete()
 {
     $this->_storeManager->clearWebsiteCache($this->getId());
     parent::_afterDelete();
     return $this;
 }