You are here

public static function SmsDeliveryReportsProcessor::getSubscribedEvents in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/SmsDeliveryReportsProcessor.php \Drupal\sms\EventSubscriber\SmsDeliveryReportsProcessor::getSubscribedEvents()
  2. 2.1.x src/EventSubscriber/SmsDeliveryReportsProcessor.php \Drupal\sms\EventSubscriber\SmsDeliveryReportsProcessor::getSubscribedEvents()

File

src/EventSubscriber/SmsDeliveryReportsProcessor.php, line 58

Class

SmsDeliveryReportsProcessor
Handles delivery reports as they come in and updates storage.

Namespace

Drupal\sms\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Update delivery reports as they are received.
  $events[SmsEvents::DELIVERY_REPORT_POST_PROCESS][] = [
    'updateDeliveryReports',
    1024,
  ];
  return $events;
}