public function HttpStatusCode::__construct in Context 8.4
Constructs a HttpStatusCode condition plugin.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
Overrides ConditionPluginBase::__construct
File
- src/
Plugin/ Condition/ HttpStatusCode.php, line 41
Class
- HttpStatusCode
- Provides a 'Http status code' condition.
Namespace
Drupal\context\Plugin\ConditionCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, RequestStack $request_stack) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->requestStack = $request_stack;
}