public function RequestParam::__construct in Condition Query 8
Constructs a RequestPath condition plugin.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
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.
Overrides ConditionPluginBase::__construct
File
- src/
Plugin/ Condition/ RequestParam.php, line 40
Class
- RequestParam
- Provides a 'Request Param' condition.
Namespace
Drupal\condition_query\Plugin\ConditionCode
public function __construct(RequestStack $request_stack, array $configuration, $plugin_id, array $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->requestStack = $request_stack;
}