You are here

function opigno_class_update_8010 in Opigno class 8

Update permissions for users with role 'Content manager'.

File

./opigno_class.install, line 143
Install, update and uninstall functions for the Opigno Class module.

Code

function opigno_class_update_8010() {
  $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.content_manager', $source
    ->read('user.role.content_manager'));
}