function opigno_skills_system_update_8005 in Opigno module 8
Update skills vocabulary.
File
- modules/
opigno_skills_system/ opigno_skills_system.install, line 178 - Install, update and uninstall functions for the Opigno skills system module.
Code
function opigno_skills_system_update_8005() {
$config_path = drupal_get_path('module', 'opigno_skills_system') . '/config/optional';
$storage = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$data = $storage
->read('field.storage.taxonomy_term.field_level_names');
$config_storage
->write('field.storage.taxonomy_term.field_level_names', $data);
}