function commerce_bulk_update_8202 in Commerce Bulk 8
Install Commerce Bulk Taxonomy view and actions.
File
- ./
commerce_bulk.install, line 124 - Install and uninstall functions for the commerce_bulk module.
Code
function commerce_bulk_update_8202() {
$config = \Drupal::configFactory();
$configurations = [
'system.action.commerce_bulk_term_duplicate',
'system.action.commerce_bulk_term_zdelete',
'views.view.commerce_bulk_taxonomy',
];
foreach ($configurations as $name) {
if ($configuration = $config
->getEditable($name)) {
$data = Yaml::decode(file_get_contents(__DIR__ . "/config/install/{$name}.yml"));
$configuration
->setData($data)
->save();
}
}
}