\!h read
public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
$this->_scopeConfig = $scopeConfig;
}
return $this->scopeConfig->getValue(self::XML_CONFIG_PREFIX . 'title', self::SCOPE);
return $this->scopeConfig->isSetFlag(self::XML_CONFIG_PREFIX . 'debug',self::SCOPE);
\!h write
public function __construct(
\Magento\Framework\App\Helper\Context $context,
\Magento\Framework\App\Config\Storage\WriterInterface $configWriter
){
parent::__construct($context);
$this->configWriter = $configWriter;
}
$this->configWriter->save(self::XML_CONFIG_PREFIX . 'min_order_total', $amount);