You are here

public function Message::setSenderMail in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/contact/src/Entity/Message.php \Drupal\contact\Entity\Message::setSenderMail()

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 82

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Entity

Code

public function setSenderMail($sender_mail) {
  $this
    ->set('mail', $sender_mail);
}