I know you can set config data in Magento 1 with:
Mage::getModel('core/config')->saveConfig('my/path/whatever', $value);
and you can get config data in Magento 2 with:
protected $_scopeConfig
public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
$this->_scopeConfig = $scopeConfig;
}
+
$this->_scopeConfig->getValue( 'path/of/config', \Magento\Store\Model\ScopeInterface::SCOPE_STORE );
But I can't figure out, how I can save config data in Magento 2