You are here

workbench_access_hooks.module in Workbench Access 8

File

tests/modules/workbench_access_hooks/workbench_access_hooks.module
View source
<?php

use Drupal\Core\Config\Config;

/**
 * Implements hook_workbench_access_scheme_update_alter().
 */
function workbench_access_hooks_workbench_access_scheme_update_alter(array &$settings, Config $config) {
  if ($config
    ->get('scheme')) {
    $settings = [
      'test' => 'test',
    ];
  }
}