function 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\EntityCode
public function setSenderMail($sender_mail) {
$this->set('mail', $sender_mail);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.