function hook_acsf_duplication_scrub_admin_roles_alter in Acquia Cloud Site Factory Connector 8
Same name and namespace in other branches
- 8.2 acsf_duplication/acsf_duplication.api.php \hook_acsf_duplication_scrub_admin_roles_alter()
Alters the list of admin roles of users to preserve.
Parameters
array $admin_roles: A numeric array of admin roles of users to preserve.
See also
\Acquia\Acsf\AcsfDuplicationScrubUserHandler::getOpenIdAdmins()
1 invocation of hook_acsf_duplication_scrub_admin_roles_alter()
- AcsfDuplicationScrubEntityHandler::getSiteAdmins in src/
Event/ AcsfDuplicationScrubEntityHandler.php - Gets a list of site admins.
File
- acsf_duplication/
acsf_duplication.api.php, line 50 - Documents hooks provided by the ACSF Duplication module.
Code
function hook_acsf_duplication_scrub_admin_roles_alter(array &$admin_roles) {
if ($role = \Drupal::config('mymodule')
->get('admin_role')) {
$admin_roles[] = $role;
}
}