/** * 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); }
/** * {@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, '/'); }