You are here

public function ContextAny::__construct in Context 8.4

Constructs a ContextAny 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.

\Drupal\context\ContextManager $context_manager: A context manager for checking the current active contexts.

Overrides ConditionPluginBase::__construct

File

src/Plugin/Condition/ContextAny.php, line 41

Class

ContextAny
Provides a 'Context (any)' condition.

Namespace

Drupal\context\Plugin\Condition

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ContextManager $context_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->contextManager = $context_manager;
}