Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
KillSwitch.php
function KillSwitch::trigger
Deny any page caching on the current request.
File
core/
lib/
Drupal/
Core/
PageCache/
ResponsePolicy/
KillSwitch.php
, line 33
Class
KillSwitch
A policy evaluating to static::DENY when the kill switch was triggered.
Namespace
Drupal\Core\PageCache\ResponsePolicy
Code
public
function
trigger
() {
$this
->
kill
=
TRUE
; }
RSS feed