function opigno_module_update_8022 in Opigno module 8
Update views: 'Opigno activities bank'.
File
- ./
opigno_module.install, line 1309 - Opigno module app install/update functionality.
Code
function opigno_module_update_8022() {
$config_path = drupal_get_path('module', 'opigno_module') . '/config/optional';
$storage = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$data = $storage
->read('views.view.opigno_activities_bank');
$config_storage
->write('views.view.opigno_activities_bank', $data);
$data = $storage
->read('views.view.opigno_activities_bank_lp_interface');
$config_storage
->write('views.view.opigno_activities_bank_lp_interface', $data);
}