You are here

protected function BatchQueueMongodb::mongoCollection in MongoDB 8

Return value

\MongoCollection

Overrides QueueMongodb::mongoCollection

File

src/BatchQueueMongodb.php, line 88
QueueMongodb functionality.

Class

BatchQueueMongodb
MongoDB batch queue implementation.

Namespace

Drupal\mongodb

Code

protected function mongoCollection() {
  if (!isset($this->mongo)) {
    $this->mongo = \Drupal::service('mongo');
  }
  return $this->mongo
    ->get($this->collection);
}