public function SmsMessage::getSenderEntity in SMS Framework 8
Same name and namespace in other branches
- 2.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::getSenderEntity()
- 2.1.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::getSenderEntity()
Gets the entity who sent the SMS message.
Return value
\Drupal\Core\Entity\EntityInterface|null The entity who sent the SMS message, or NULL if it is missing.
Overrides SmsMessageInterface::getSenderEntity
2 calls to SmsMessage::getSenderEntity()
- SmsMessage::getSender in src/
Entity/ SmsMessage.php - Gets the name of the sender of this SMS message.
- SmsMessage::getUid in src/
Entity/ SmsMessage.php - Gets the user who created the SMS message.
File
- src/
Entity/ SmsMessage.php, line 364
Class
- SmsMessage
- Defines the SMS message entity.
Namespace
Drupal\sms\EntityCode
public function getSenderEntity() {
return $this
->get('sender_entity')->entity;
}