function opigno_learning_path_update_8029 in Opigno Learning path 8
Update certificate expire period labels.
File
- ./
opigno_learning_path.install, line 832 - Install, update and uninstall functions for the module.
Code
function opigno_learning_path_update_8029() {
$config_path = drupal_get_path('module', 'opigno_learning_path') . '/config/install';
$storage = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$data = $storage
->read('field.storage.group.field_certificate_expire_results');
$config_storage
->write('field.storage.group.field_certificate_expire_results', $data);
}