Message::setSenderMail

public Message::setSenderMail($sender_mail)

Sets the email address of the sender.

Parameters

string $sender_mail: The email address of the message sender.

Overrides MessageInterface::setSenderMail

File

core/modules/contact/src/Entity/Message.php, line 74

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Entity

Code

public function setSenderMail($sender_mail) {
  $this->set('mail', $sender_mail);
}
doc_Drupal
2016-10-29 09:28:08
Comments
Leave a Comment

Please login to continue.