function ReplicaKillSwitch::getSubscribedEvents
Same name in other branches
- 9 core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::getSubscribedEvents()
- 8.9.x core/lib/Drupal/Core/Database/ReplicaKillSwitch.php \Drupal\Core\Database\ReplicaKillSwitch::getSubscribedEvents()
- 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\DatabaseCode
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.