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