/** * Save config value to storage * * @param string $path * @param string $value * @param string $scope * @param int $scopeId * @return void */ public function save($path, $value, $scope = \Magento\Framework\App\ScopeInterface::SCOPE_DEFAULT, $scopeId = 0) { $this->_resource->saveConfig(rtrim($path, '/'), $value, $scope, $scopeId); }
/** * Save config value to storage * * @param string $path * @param string $value * @param string $scope * @param int $scopeId * @return void */ public function save($path, $value, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0) { $this->_resource->saveConfig(rtrim($path, '/'), $value, $scope, $scopeId); }