function opigno_class_update_8007 in Opigno class 8
Update permissions for users with role 'User manager'.
File
- ./
opigno_class.install, line 93 - Install, update and uninstall functions for the Opigno Class module.
Code
function opigno_class_update_8007() {
$config_path = drupal_get_path('module', 'opigno_class') . '/config/rewrite';
$source = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$config_storage
->write('user.role.authenticated', $source
->read('user.role.authenticated'));
}