You are here

function workbench_access_update_8001 in Workbench Access 8

Add the setting to deny access to unassigned content.

File

./workbench_access.install, line 11
Install, update and uninstall functions for the Workbench Access module.

Code

function workbench_access_update_8001() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('workbench_access.settings');
  $config
    ->set('deny_on_empty', 0);
  $config
    ->save(TRUE);
}