You are here

public static function SmsTestEventSubscriber::getSubscribedEvents in SMS Framework 2.1.x

Same name and namespace in other branches
  1. 8 tests/modules/sms_test/src/EventSubscriber/SmsTestEventSubscriber.php \Drupal\sms_test\EventSubscriber\SmsTestEventSubscriber::getSubscribedEvents()
  2. 2.x tests/modules/sms_test/src/EventSubscriber/SmsTestEventSubscriber.php \Drupal\sms_test\EventSubscriber\SmsTestEventSubscriber::getSubscribedEvents()

File

tests/modules/sms_test/src/EventSubscriber/SmsTestEventSubscriber.php, line 61

Class

SmsTestEventSubscriber
Test event subscriber.

Namespace

Drupal\sms_test\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[SmsEvents::MESSAGE_GATEWAY][] = [
    'testAddGateway200',
  ];
  $events[SmsEvents::MESSAGE_GATEWAY][] = [
    'testAddGateway400',
  ];
  $events[SmsEvents::MESSAGE_PRE_PROCESS][] = [
    'testExecutionOrder',
  ];
  $events[SmsEvents::MESSAGE_POST_PROCESS][] = [
    'testExecutionOrder',
  ];
  $events[SmsEvents::MESSAGE_QUEUE_PRE_PROCESS][] = [
    'testExecutionOrder',
  ];
  $events[SmsEvents::MESSAGE_QUEUE_POST_PROCESS][] = [
    'testExecutionOrder',
  ];
  $events[SmsEvents::MESSAGE_INCOMING_PRE_PROCESS][] = [
    'testExecutionOrder',
  ];
  $events[SmsEvents::MESSAGE_INCOMING_POST_PROCESS][] = [
    'testExecutionOrder',
  ];
  $events[SmsEvents::MESSAGE_OUTGOING_PRE_PROCESS][] = [
    'testExecutionOrder',
  ];
  $events[SmsEvents::MESSAGE_OUTGOING_POST_PROCESS][] = [
    'testExecutionOrder',
  ];
  return $events;
}