public function SmsMessageEvent::__construct in SMS Framework 8
Same name and namespace in other branches
- 2.x src/Event/SmsMessageEvent.php \Drupal\sms\Event\SmsMessageEvent::__construct()
- 2.1.x src/Event/SmsMessageEvent.php \Drupal\sms\Event\SmsMessageEvent::__construct()
Constructs the object.
Parameters
\Drupal\sms\Message\SmsMessageInterface[] $messages: The SMS message.
File
- src/
Event/ SmsMessageEvent.php, line 30
Class
- SmsMessageEvent
- Event fired when SMS messages are processed.
Namespace
Drupal\sms\EventCode
public function __construct(array $messages) {
$this
->setMessages($messages);
}