Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
process_config_data.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
10 
11 $processConfigData = function (Config $config, array $data) {
12  foreach ($data as $key => $value) {
13  $config->setDataByPath($key, $value);
14  $config->save();
15  }
16 };
17 
18 $deleteConfigData = function (WriterInterface $writer, array $configData, string $scope, int $scopeId) {
19  foreach ($configData as $path) {
20  $writer->delete($path, $scope, $scopeId);
21  }
22 };
$config
Definition: fraud_order.php:17
$processConfigData
$value
Definition: gender.phtml:16
delete($path, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId=0)
$deleteConfigData