You are here

public function ConditionExpression::__construct in Rules 8.3

Constructs a new class instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance. Contains the following entries:

  • condition_id: The condition plugin ID.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\rules\Core\ConditionManager $condition_manager: The condition manager.

\Drupal\rules\Context\DataProcessorManager $processor_manager: The data processor plugin manager.

\Drupal\Core\Logger\LoggerChannelInterface $logger: The Rules debug logger channel.

Overrides ExpressionBase::__construct

File

src/Plugin/RulesExpression/ConditionExpression.php, line 65

Class

ConditionExpression
Defines an executable condition expression.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConditionManager $condition_manager, DataProcessorManager $processor_manager, LoggerChannelInterface $logger) {

  // Make sure defaults are applied.
  $configuration += $this
    ->defaultConfiguration();
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->conditionManager = $condition_manager;
  $this->processorManager = $processor_manager;
  $this->rulesDebugLogger = $logger;
}