workbench_access-8.x-1.x-dev/tests/modules/workbench_access_hooks/workbench_access_hooks.module
tests/modules/workbench_access_hooks/workbench_access_hooks.module
<?php
/**
* @file
* Test module file.
*/
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',
];
}
}
