public static function MySmsEventSubscriber::getSubscribedEvents in SMS Framework 8
Same name and namespace in other branches
- 2.x sms.api.php \MySmsEventSubscriber::getSubscribedEvents()
- 2.1.x sms.api.php \MySmsEventSubscriber::getSubscribedEvents()
File
- ./
sms.api.php, line 112 - SMS Framework hooks.
Class
- MySmsEventSubscriber
- Event subscribers for SMS Framework.
Code
public static function getSubscribedEvents() {
$events[\Drupal\sms\Event\SmsEvents::ENTITY_PHONE_NUMBERS][] = [
'myEntityPhoneNumbers',
];
$events[\Drupal\sms\Event\SmsEvents::MESSAGE_PRE_PROCESS][] = [
'mySmsMessagePreprocess',
];
$events[\Drupal\sms\Event\SmsEvents::MESSAGE_POST_PROCESS][] = [
'mySmsMessagePostprocess',
];
$events[\Drupal\sms\Event\SmsEvents::MESSAGE_GATEWAY][] = [
'mySmsMessageGateway',
];
$events[\Drupal\sms\Event\SmsEvents::DELIVERY_REPORT_POST_PROCESS][] = [
'myDeliveryReportPostProcessor',
];
return $events;
}