You are here

public function Logger::templateCollection in MongoDB 8.2

Return the event templates collection.

Return value

\MongoDB\Collection The collection.

File

modules/mongodb_watchdog/src/Logger.php, line 800

Class

Logger
Class Logger is a PSR/3 Logger using a MongoDB data store.

Namespace

Drupal\mongodb_watchdog

Code

public function templateCollection() : Collection {
  return $this->database
    ->selectCollection(static::TEMPLATE_COLLECTION);
}