You are here

function menu_per_role_update_8104 in Menu Per Role 8

Init new settings for admin to bypass access.

File

./menu_per_role.install, line 60

Code

function menu_per_role_update_8104() {
  $config = \Drupal::configFactory()
    ->getEditable('menu_per_role.settings');
  $config
    ->set('admin_bypass_access_front', FALSE);
  $config
    ->set('admin_bypass_access_admin', TRUE);
  $config
    ->save();
}