You are here

public function TestDebugLogAction::__construct in Rules 8.3

Constructs a TestDebugLogAction object.

Parameters

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

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

mixed $plugin_definition: The plugin implementation definition.

\Drupal\rules\Logger\RulesDebugLoggerChannel $logger: Rules debug logger object.

Overrides ContextAwarePluginBase::__construct

File

tests/modules/rules_test/src/Plugin/RulesAction/TestDebugLogAction.php, line 46

Class

TestDebugLogAction
Provides an action writing an error to the Rules debug logger channel.

Namespace

Drupal\rules_test\Plugin\RulesAction

Code

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