protected function MongodbNodeStorage::revisionQueryIds in MongoDB 8
2 calls to MongodbNodeStorage::revisionQueryIds()
- MongodbNodeStorage::revisionIds in mongodb_node/
src/ MongodbNodeStorage.php - Gets a list of node revision IDs for a specific node.
- MongodbNodeStorage::userRevisionIds in mongodb_node/
src/ MongodbNodeStorage.php - Gets a list of revision IDs having a given user as node author.
File
- mongodb_node/
src/ MongodbNodeStorage.php, line 29 - Contains \Drupal\node\MongodbNodeStorage.
Class
Namespace
Drupal\mongodb_nodeCode
protected function revisionQueryIds(array $query) {
$results = $this->mongo
->get('entity_revision.node')
->find($query, [
'_id' => 1,
])
->sort([
'_id' => 1,
]);
return array_map(function ($row) {
return $row['_id'];
}, iterator_to_array($results));
}