You are here

protected function KeyvalueMongodb::collection in MongoDB 8

Gets the collection for this key-value collection.

Return value

\MongoCollection

File

src/KeyvalueMongodb.php, line 46

Class

KeyvalueMongodb
This class holds a MongoDB key-value backend.

Namespace

Drupal\mongodb

Code

protected function collection() {
  return $this->mongo
    ->get($this->mongo_collection);
}