function ReplicaKillSwitch::getSubscribedEvents

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::getSubscribedEvents()
  2. 8.9.x core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::getSubscribedEvents()
  3. 10 core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::getSubscribedEvents()

File

core/lib/Drupal/Core/Database/ReplicaKillSwitch.php, line 108

Class

ReplicaKillSwitch
Provides replica server kill switch to ignore it.

Namespace

Drupal\Core\Database

Code

public static function getSubscribedEvents() : array {
    $events[KernelEvents::REQUEST][] = [
        'checkReplicaServer',
    ];
    return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.