You are here

function mongodb_watchdog_install in MongoDB 8

Same name and namespace in other branches
  1. 8.2 modules/mongodb_watchdog/mongodb_watchdog.install \mongodb_watchdog_install()
  2. 6 mongodb_watchdog/mongodb_watchdog.install \mongodb_watchdog_install()
  3. 7 mongodb_watchdog/mongodb_watchdog.install \mongodb_watchdog_install()

Implements hook_install().

File

mongodb_watchdog/mongodb_watchdog.install, line 11
MongoDB watchdog install file.

Code

function mongodb_watchdog_install() {

  /** @var \Drupal\mongodb\Logger\Logger $logger */
  $logger = \Drupal::service('mongo.logger');
  $logger
    ->ensureIndexes();
}