function opigno_lms_update_8002 in Opigno LMS 8.2
Same name and namespace in other branches
- 8 opigno_lms.install \opigno_lms_update_8002()
Implements hook_update_N().
Updates Opigno Activities Bank (LP Interface) view.
File
- ./
opigno_lms.install, line 126 - Install, update and uninstall functions for the "opigno_lms" installation profile.
Code
function opigno_lms_update_8002() {
$config_path = drupal_get_path('module', 'opigno_module') . '/config/optional';
/* @var Drupal\Core\Config\CachedStorage $config_storage */
$storage = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$data = $storage
->read('views.view.opigno_activities_bank_lp_interface');
$config_storage
->write('views.view.opigno_activities_bank_lp_interface', $data);
}