public function ContactForm::setMessage in Drupal 8
Same name and namespace in other branches
- 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 116
Class
- ContactForm
- Defines the contact form entity.
Namespace
Drupal\contact\EntityCode
public function setMessage($message) {
$this->message = $message;
return $this;
}