Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ReplicaKillSwitch.php

function ReplicaKillSwitch::getSubscribedEvents

Overrides EventSubscriberInterface::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;
}
RSS feed
Powered by Drupal