function ResponseStatus::getCacheContexts
Same name in other branches
- 10 core/modules/system/src/Plugin/Condition/ResponseStatus.php \Drupal\system\Plugin\Condition\ResponseStatus::getCacheContexts()
Overrides ContextAwarePluginTrait::getCacheContexts
File
-
core/
modules/ system/ src/ Plugin/ Condition/ ResponseStatus.php, line 119
Class
- ResponseStatus
- Provides a 'Response status' condition.
Namespace
Drupal\system\Plugin\ConditionCode
public function getCacheContexts() : array {
$contexts = parent::getCacheContexts();
$contexts[] = 'url.path';
return $contexts;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.