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

Breadcrumb

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

function KillSwitch::check

Overrides ResponsePolicyInterface::check

File

core/lib/Drupal/Core/PageCache/ResponsePolicy/KillSwitch.php, line 24

Class

KillSwitch
A policy evaluating to static::DENY when the kill switch was triggered.

Namespace

Drupal\Core\PageCache\ResponsePolicy

Code

public function check(Response $response, Request $request) {
    if ($this->kill) {
        return static::DENY;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal