protected function AcsfDuplicationScrubNodeHandler::getPreservedUsers in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 src/Event/AcsfDuplicationScrubNodeHandler.php \Drupal\acsf\Event\AcsfDuplicationScrubNodeHandler::getPreservedUsers()
Gets a list of user IDs which should not be scrubbed.
This is a reference implementation for use by child classes; by default, it returns admins and the anonymous user.
Return value
array An indexed array of user IDs which should not be scrubbed.
Overrides AcsfDuplicationScrubEntityHandler::getPreservedUsers
1 call to AcsfDuplicationScrubNodeHandler::getPreservedUsers()
- AcsfDuplicationScrubNodeHandler::getBaseQuery in src/
Event/ AcsfDuplicationScrubNodeHandler.php - Gets an initialized entity query instance.
File
- src/
Event/ AcsfDuplicationScrubNodeHandler.php, line 48
Class
- AcsfDuplicationScrubNodeHandler
- Handles the scrubbing of Drupal nodes.
Namespace
Drupal\acsf\EventCode
protected function getPreservedUsers() {
$preserved_uids = parent::getPreservedUsers();
// Remove the anonymous user from the list, since we do want to delete that
// content.
if (($key = array_search(0, $preserved_uids)) !== FALSE) {
unset($preserved_uids[$key]);
}
return $preserved_uids;
}