public function ContactForm::setMessage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contact/src/Entity/ContactForm.php \Drupal\contact\Entity\ContactForm::setMessage()
- 9 core/modules/contact/src/Entity/ContactForm.php \Drupal\contact\Entity\ContactForm::setMessage()
Sets the message to be displayed to the user.
Parameters
string $message: The message to display after form is submitted.
Return value
$this
Overrides ContactFormInterface::setMessage
File
- core/
modules/ contact/ src/ Entity/ ContactForm.php, line 120
Class
- ContactForm
- Defines the contact form entity.
Namespace
Drupal\contact\EntityCode
public function setMessage($message) {
$this->message = $message;
return $this;
}