You are here

public function Logger::templateTypes in MongoDB 8.2

Return the template types actually present in storage.

Return value

string[] An array of distinct EventTemplate types.

File

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

Class

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

Namespace

Drupal\mongodb_watchdog

Code

public function templateTypes() : array {
  $ret = $this
    ->templateCollection()
    ->distinct('type');
  return $ret;
}