function ResponseStatus::setRequestStack

Same name in other branches
  1. 11.x core/modules/system/src/Plugin/Condition/ResponseStatus.php \Drupal\system\Plugin\Condition\ResponseStatus::setRequestStack()

File

core/modules/system/src/Plugin/Condition/ResponseStatus.php, line 41

Class

ResponseStatus
Provides a 'Response status' condition.

Namespace

Drupal\system\Plugin\Condition

Code

public function setRequestStack(RequestStack $requestStack) : void {
    $this->requestStack = $requestStack;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.