protected function AcsfDuplicationScrubUserHandler::getBaseQuery in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 src/Event/AcsfDuplicationScrubUserHandler.php \Drupal\acsf\Event\AcsfDuplicationScrubUserHandler::getBaseQuery()
Gets an initialized entity query instance.
When calling this function repeatedly, a filter is applied such that the query will return different IDs for each consecutive query.
Return value
\Drupal\Core\Entity\Query\QueryInterface The entity query instance.
Overrides AcsfDuplicationScrubEntityHandler::getBaseQuery
File
- src/
Event/ AcsfDuplicationScrubUserHandler.php, line 56
Class
- AcsfDuplicationScrubUserHandler
- Handles the scrubbing of Drupal users.
Namespace
Drupal\acsf\EventCode
protected function getBaseQuery() {
$entity_query = parent::getBaseQuery();
$entity_query
->condition('uid', $this
->getPreservedUsers(), 'NOT IN');
return $entity_query;
}