protected function AcsfDuplicationScrubNodeHandler::getBaseQuery in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 src/Event/AcsfDuplicationScrubNodeHandler.php \Drupal\acsf\Event\AcsfDuplicationScrubNodeHandler::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/ AcsfDuplicationScrubNodeHandler.php, line 38
Class
- AcsfDuplicationScrubNodeHandler
- Handles the scrubbing of Drupal nodes.
Namespace
Drupal\acsf\EventCode
protected function getBaseQuery() {
$entity_query = parent::getBaseQuery();
$entity_query
->condition('uid', $this
->getPreservedUsers(), 'NOT IN');
return $entity_query;
}