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