protected function SendMailQueueWorker::messageHasAnotherTheme in Queue Mail 8
Checks if message has been generated using another theme.
Parameters
array $message: Mail message.
Return value
bool TRUE if message has theme that is not an active theme, FALSE otherwise.
2 calls to SendMailQueueWorker::messageHasAnotherTheme()
- SendMailQueueWorker::setActiveTheme in src/
Plugin/ QueueWorker/ SendMailQueueWorker.php - Restore back theme that is used by default.
- SendMailQueueWorker::setMailTheme in src/
Plugin/ QueueWorker/ SendMailQueueWorker.php - Set theme from the theme.
File
- src/
Plugin/ QueueWorker/ SendMailQueueWorker.php, line 249
Class
- SendMailQueueWorker
- Sends emails form queue.
Namespace
Drupal\queue_mail\Plugin\QueueWorkerCode
protected function messageHasAnotherTheme(array $message) {
return !empty($message['theme']) && $message['theme'] != $this->activeTheme
->getName();
}