You are here

public function SmsMessageEvent::setMessages in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Event/SmsMessageEvent.php \Drupal\sms\Event\SmsMessageEvent::setMessages()
  2. 2.1.x src/Event/SmsMessageEvent.php \Drupal\sms\Event\SmsMessageEvent::setMessages()

Set the messages on this event.

Parameters

\Drupal\sms\Message\SmsMessageInterface[] $messages: The messages to set on this event.

Return value

$this Returns this event for chaining.

1 call to SmsMessageEvent::setMessages()
SmsMessageEvent::__construct in src/Event/SmsMessageEvent.php
Constructs the object.

File

src/Event/SmsMessageEvent.php, line 53

Class

SmsMessageEvent
Event fired when SMS messages are processed.

Namespace

Drupal\sms\Event

Code

public function setMessages(array $messages) {
  $this->messages = $messages;
  return $this;
}