You are here

public function LanguageAwareSendMailQueueWorker::__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 SendMailQueueWorker::__construct

File

modules/queue_mail_language/src/Plugin/QueueWorker/LanguageAwareSendMailQueueWorker.php, line 56

Class

LanguageAwareSendMailQueueWorker
Sends emails from queue with language support.

Namespace

Drupal\queue_mail_language\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, ConfigurableLanguageManagerInterface $language_manager, QueueMailLanguageNegotiator $queue_mail_language_negotiator) {
  parent::__construct($theme_manager, $theme_init, $mail_manager, $logger_factory, $config_factory, $queue_factory, $module_handler);
  $this->languageManager = $language_manager;
  $this->queueMailLanguageNegotiator = $queue_mail_language_negotiator;
}