function MessageInterface::setSenderMail
Same name in other branches
- 8.9.x core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::setSenderMail()
- 10 core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::setSenderMail()
- 11.x core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::setSenderMail()
Sets the email address of the sender.
Parameters
string $sender_mail: The email address of the message sender.
1 method overrides MessageInterface::setSenderMail()
- Message::setSenderMail in core/
modules/ contact/ src/ Entity/ Message.php - Sets the email address of the sender.
File
-
core/
modules/ contact/ src/ MessageInterface.php, line 50
Class
- MessageInterface
- Provides an interface defining a contact message entity.
Namespace
Drupal\contactCode
public function setSenderMail($sender_mail);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.