You are here

public static function SmsDeliveryReportsProcessor::getSubscribedEvents in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 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 60

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;
}