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