You are here

protected function SendMailQueueWorker::setMailLanguage in Queue Mail 8

Sets language from the message.

Parameters

array $message: Mail message.

Return value

string The negotiated language code.

1 call to SendMailQueueWorker::setMailLanguage()
SendMailQueueWorker::processItem in src/Plugin/QueueWorker/SendMailQueueWorker.php
Works on a single queue item.
1 method overrides SendMailQueueWorker::setMailLanguage()
LanguageAwareSendMailQueueWorker::setMailLanguage in modules/queue_mail_language/src/Plugin/QueueWorker/LanguageAwareSendMailQueueWorker.php
Sets language from the message.

File

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

Class

SendMailQueueWorker
Sends emails form queue.

Namespace

Drupal\queue_mail\Plugin\QueueWorker

Code

protected function setMailLanguage(array $message) {
  return $message['langcode'];
}