public function SmsMessage::setSender in SMS Framework 2.x
Same name in this branch
- 2.x src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::setSender()
- 2.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSender()
Same name and namespace in other branches
- 8 src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSender()
- 2.1.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSender()
Parameters
string|null $sender: The name of the sender. Or NULL to defer to the label of the sender entity.
Overrides SmsMessageInterface::setSender
See also
::getSender()
File
- src/
Entity/ SmsMessage.php, line 254
Class
- SmsMessage
- Defines the SMS message entity.
Namespace
Drupal\sms\EntityCode
public function setSender($sender) {
$this
->set('sender_name', $sender);
return $this;
}