public function Message::getMessage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contact/src/Entity/Message.php \Drupal\contact\Entity\Message::getMessage()
- 9 core/modules/contact/src/Entity/Message.php \Drupal\contact\Entity\Message::getMessage()
Returns the message body.
Return value
string The message body.
Overrides MessageInterface::getMessage
File
- core/
modules/ contact/ src/ Entity/ Message.php, line 103
Class
- Message
- Defines the contact message entity.
Namespace
Drupal\contact\EntityCode
public function getMessage() {
return $this
->get('message')->value;
}