You are here

public function SendMailQueueWorker::__construct in Queue Mail 8

Constructs a \Drupal\Component\Plugin\PluginBase 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.

Overrides PluginBase::__construct

1 call to SendMailQueueWorker::__construct()
LanguageAwareSendMailQueueWorker::__construct in modules/queue_mail_language/src/Plugin/QueueWorker/LanguageAwareSendMailQueueWorker.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
1 method overrides SendMailQueueWorker::__construct()
LanguageAwareSendMailQueueWorker::__construct in modules/queue_mail_language/src/Plugin/QueueWorker/LanguageAwareSendMailQueueWorker.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Plugin/QueueWorker/SendMailQueueWorker.php, line 105

Class

SendMailQueueWorker
Sends emails form queue.

Namespace

Drupal\queue_mail\Plugin\QueueWorker

Code

public function __construct(ThemeManagerInterface $theme_manager, ThemeInitializationInterface $theme_init, MailManagerInterface $mail_manager, LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory, ContainerAwareInterface $queue_factory, ModuleHandlerInterface $module_handler) {
  $this->themeManager = $theme_manager;
  $this->themeInitialization = $theme_init;
  $this->activeTheme = $this->themeManager
    ->getActiveTheme();
  $this->mailManager = $mail_manager;
  $this->logger = $logger_factory
    ->get('mail');
  $this->config = $config_factory
    ->get('queue_mail.settings');
  $this->queue = $queue_factory
    ->get('queue_mail', TRUE);
  $this->moduleHandler = $module_handler;
}