You are here

protected function SendMailQueueWorker::setActiveTheme in Queue Mail 8

Restore back theme that is used by default.

Parameters

array $message: Mail message.

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

File

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

Class

SendMailQueueWorker
Sends emails form queue.

Namespace

Drupal\queue_mail\Plugin\QueueWorker

Code

protected function setActiveTheme(array $message) {
  if ($this
    ->messageHasAnotherTheme($message)) {
    $this->themeManager
      ->setActiveTheme($this->activeTheme);
  }
}