Formatter/DatabaseDataFormatter.php 1 location
|
@@ 15-17 (lines=3) @@
|
12 |
|
$notificationData = $notification->getDataArray(); |
13 |
|
$notifiable = $notification->getNotifiable(); |
14 |
|
|
15 |
|
if (!empty($this->twig) && $notification->getTemplate()) { |
16 |
|
$notificationData['body'] = $this->renderTwigTemplate($notificationData, $notifiable, $notification->getTemplate()); |
17 |
|
} |
18 |
|
|
19 |
|
$message = new DatabaseMessage(); |
20 |
|
|
Formatter/MailDataFormatter.php 1 location
|
@@ 49-55 (lines=7) @@
|
46 |
|
$messageData['body'] = empty($notificationData['body']) ? '' : $notificationData['body']; |
47 |
|
$messageData['title'] = empty($notificationData['title']) ? '' : $notificationData['title']; |
48 |
|
|
49 |
|
if (!empty($this->twig) && $notification->getTemplate()) { |
50 |
|
$messageData['body'] = $this->renderTwigTemplate( |
51 |
|
$notificationData, |
52 |
|
$notifiable, |
53 |
|
$notification->getTemplate() |
54 |
|
); |
55 |
|
} |
56 |
|
|
57 |
|
$message->setDispatchData($dispatchData); |
58 |
|
$message->setMessageData($messageData); |