You are here

protected function SendMailQueueWorker::setMailTheme in Queue Mail 8

Set theme from the theme.

Parameters

array $message: Mail message.

1 call to SendMailQueueWorker::setMailTheme()
SendMailQueueWorker::processItem in src/Plugin/QueueWorker/SendMailQueueWorker.php
Works on a single queue item.

File

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

Class

SendMailQueueWorker
Sends emails form queue.

Namespace

Drupal\queue_mail\Plugin\QueueWorker

Code

protected function setMailTheme(array $message) {
  if ($this
    ->messageHasAnotherTheme($message)) {
    $theme = $this->themeInitialization
      ->initTheme($message['theme']);
    $this->themeManager
      ->setActiveTheme($theme);
  }
}