function ActionExpression::__construct

Constructs a new class instance.

Parameters

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

  • action_id: The action plugin ID.

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

mixed $plugin_definition: The plugin implementation definition.

\Drupal\rules\Core\RulesActionManagerInterface $action_manager: The Rules action 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/ActionExpression.php, line 65

Class

ActionExpression
Provides an executable action expression.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RulesActionManagerInterface $action_manager, DataProcessorManager $processor_manager, LoggerChannelInterface $logger) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->actionManager = $action_manager;
    $this->processorManager = $processor_manager;
    $this->rulesDebugLogger = $logger;
}