You are here

function hook_acsf_duplication_scrub_preserved_users_alter in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 acsf_duplication/acsf_duplication.api.php \hook_acsf_duplication_scrub_preserved_users_alter()

Alters the list of user IDs to preserve.

Parameters

array $preserved_uids: A numeric array of user IDs to preserve.

See also

\Acquia\Acsf\AcsfDuplicationScrubUserHandler::getPreservedUsers()

1 invocation of hook_acsf_duplication_scrub_preserved_users_alter()
AcsfDuplicationScrubEntityHandler::getPreservedUsers in src/Event/AcsfDuplicationScrubEntityHandler.php
Gets a list of user IDs which should not be scrubbed.

File

acsf_duplication/acsf_duplication.api.php, line 64
Documents hooks provided by the ACSF Duplication module.

Code

function hook_acsf_duplication_scrub_preserved_users_alter(array &$preserved_uids) {
  if ($uids = \Drupal::config('mymodule')
    ->get('preserved_uids', [])) {
    $preserved_uids = array_merge($preserved_uids, $uids);
  }
}