public function PageNotFoundRequest::__construct in Block In Page Not Found 8.3
Same name and namespace in other branches
- 8.4 src/Plugin/Condition/PageNotFoundRequest.php \Drupal\block_in_page_not_found\Plugin\Condition\PageNotFoundRequest::__construct()
Constructs a Page not found 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/ PageNotFoundRequest.php, line 85
Class
- PageNotFoundRequest
- Class PageNotFoundRequest.
Namespace
Drupal\block_in_page_not_found\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;
}