Files
2017-11-14 15:04:59 +01:00

32 lines
738 B
PHP
Executable File

<?php
namespace Solwin\Cpanel\Block;
use Magento\Framework\View\Element\Template;
class Update extends Template
{
/**
* Get base url without store code
*/
public function getBaseUrl() {
return $this->_storeManager
->getStore()
->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB);
}
/**
* Return config value by key and store
*
* @param string $key
* @param \Magento\Store\Model\Store|int|string $store
* @return string|null
*/
public function getConfig($key)
{
$result = $this->_scopeConfig->getValue($key,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE);
return $result;
}
}