You are here

public function Requirements::check in MongoDB 8.2

Implements hook_requirements().

File

modules/mongodb_watchdog/src/Install/Requirements.php, line 231

Class

Requirements
Class Requirements implements hook_requirements().

Namespace

Drupal\mongodb_watchdog\Install

Code

public function check(string $phase) : array {
  $state = [
    Logger::MODULE => [
      'title' => 'MongoDB watchdog',
    ],
  ];
  [
    $state,
    $err,
  ] = $this
    ->checkDatabaseAliasConsistency($state);
  if ($err) {
    return $state;
  }
  $this
    ->loadConfig($phase !== 'runtime');
  [
    $state,
    $err,
  ] = $this
    ->checkRequestTracking($state);
  if ($err) {
    return $state;
  }
  return $state;
}