You are here

public function ConditionGroup::__construct in Block Visibility Groups 8

Overrides \Drupal\Component\Plugin\PluginBase::__construct().

Overrides the construction of context aware plugins to allow for unvalidated constructor based injection of contexts.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides ConditionPluginBase::__construct

File

src/Plugin/Condition/ConditionGroup.php, line 161

Class

ConditionGroup
Provides a 'Condition Group' condition.

Namespace

Drupal\block_visibility_groups\Plugin\Condition

Code

public function __construct(EntityStorageInterface $entity_storage, ExecutableManagerInterface $manager, Request $request, GroupEvaluator $group_evaluator, array $configuration, $plugin_id, $plugin_definition) {

  // TODO: Change the autogenerated stub.
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->manager = $manager;
  $this->entityStorage = $entity_storage;
  $this->request = $request;
  $this->groupEvaluator = $group_evaluator;
}