constant SmsEvents::MESSAGE_GATEWAY in SMS Framework 8
Same name and namespace in other branches
- 2.x src/Event/SmsEvents.php \Drupal\sms\Event\SmsEvents::MESSAGE_GATEWAY
- 2.1.x src/Event/SmsEvents.php \Drupal\sms\Event\SmsEvents::MESSAGE_GATEWAY
Determines valid gateways for a recipient phone number.
This event is not always dispatched. It is only dispatch if no other preprocessors have added a gateway to a message.
If you don't know whether you should add a gateway for a recipient, then it is best to not do anything at all. Let the rest of the framework continue to try to find a gateway.
Only one gateway will be applied to the message for the recipient. The gateway with the largest priority wins.
See also
\Drupal\sms\Event\RecipientGatewayEvent
File
- src/
Event/ SmsEvents.php, line 27
Class
- SmsEvents
- Defines SMS Framework events.
Namespace
Drupal\sms\EventCode
const MESSAGE_GATEWAY = 'sms.message.gateway';