You are here

public function SmsMessageResult::setSmsMessage in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::setSmsMessage()
  2. 2.1.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::setSmsMessage()

Sets the parent SMS message entity.

Parameters

\Drupal\sms\Entity\SmsMessageInterface $sms_message: The parent SMS message object.

Return value

$this

Overrides SmsMessageResultInterface::setSmsMessage

File

src/Entity/SmsMessageResult.php, line 166

Class

SmsMessageResult
Defines the SMS message result entity.

Namespace

Drupal\sms\Entity

Code

public function setSmsMessage(SmsMessageInterface $sms_message) {
  $this
    ->set('sms_message', $sms_message);
  return $this;
}