You are here

public function PageNotFoundRequest::__construct in Block In Page Not Found 8.4

Same name and namespace in other branches
  1. 8.3 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 86

Class

PageNotFoundRequest
Provides a 'Page not found' condition.

Namespace

Drupal\block_in_page_not_found\Plugin\Condition

Code

public function __construct(RequestStack $request_stack, array $configuration, $plugin_id, array $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->requestStack = $request_stack;
}