function KillSwitch::trigger
Same name in other branches
- 9 core/lib/Drupal/Core/PageCache/ResponsePolicy/KillSwitch.php \Drupal\Core\PageCache\ResponsePolicy\KillSwitch::trigger()
- 8.9.x core/lib/Drupal/Core/PageCache/ResponsePolicy/KillSwitch.php \Drupal\Core\PageCache\ResponsePolicy\KillSwitch::trigger()
- 11.x core/lib/Drupal/Core/PageCache/ResponsePolicy/KillSwitch.php \Drupal\Core\PageCache\ResponsePolicy\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\ResponsePolicyCode
public function trigger() {
$this->kill = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.