function mongodb_watchdog_uninstall in MongoDB 8.2
Same name and namespace in other branches
- 8 mongodb_watchdog/mongodb_watchdog.install \mongodb_watchdog_uninstall()
- 6 mongodb_watchdog/mongodb_watchdog.install \mongodb_watchdog_uninstall()
- 7 mongodb_watchdog/mongodb_watchdog.install \mongodb_watchdog_uninstall()
Implements hook_uninstall().
Drop /all/ the watchdog collections by dropping the logger database.
File
- modules/
mongodb_watchdog/ mongodb_watchdog.install, line 64 - MongoDB watchdog install file.
Code
function mongodb_watchdog_uninstall() {
/** @var \MongoDB\Tests\Database\ $logger */
$logger = \Drupal::service('mongodb.watchdog_storage');
$logger
->drop();
}