public function RequestDomain::__construct in Context 8.4
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/ RequestDomain.php, line 47
Class
- RequestDomain
- Provides a 'Request domain' condition.
Namespace
Drupal\context\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;
}