You are here

public function SystemSendEmail::__construct in Rules 8.3

Constructs a SystemSendEmail 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\Core\Logger\LoggerChannelInterface $logger: The Rules logger channel.

\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/RulesAction/SystemSendEmail.php, line 79

Class

SystemSendEmail
Provides "Send email" rules action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

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