public function SmsMessageProcessor::ensureReportsPostprocess in SMS Framework 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/SmsMessageProcessor.php \Drupal\sms\EventSubscriber\SmsMessageProcessor::ensureReportsPostprocess()
- 2.1.x src/EventSubscriber/SmsMessageProcessor.php \Drupal\sms\EventSubscriber\SmsMessageProcessor::ensureReportsPostprocess()
Ensures there is a result, and reports for each recipient.
Parameters
\Drupal\sms\Event\SmsMessageEvent $event: An SMS message process event.
File
- src/
EventSubscriber/ SmsMessageProcessor.php, line 101
Class
- SmsMessageProcessor
- Handles messages before they are processed by queue(), send(), or incoming().
Namespace
Drupal\sms\EventSubscriberCode
public function ensureReportsPostprocess(SmsMessageEvent $event) {
$sms_messages = $event
->getMessages();
foreach ($sms_messages as $sms_message) {
$this
->ensureReports($sms_message);
}
}