You are here

public function EmailActionBase::__construct in Ubercart 8.4

Constructs the EmailActionBase 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\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Utility\Token $token: The token service.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The logger.factory service.

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

Overrides ContextAwarePluginBase::__construct

File

uc_order/src/Plugin/RulesAction/EmailActionBase.php, line 64

Class

EmailActionBase
Provides a base class for RulesActions that send email.

Namespace

Drupal\uc_order\Plugin\RulesAction

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountInterface $current_user, Token $token, LoggerChannelFactoryInterface $logger, MailManagerInterface $mail_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentUser = $current_user;
  $this->token = $token;
  $this->logger = $logger;
  $this->mailManager = $mail_manager;
}