function ContactFormInterface::setMessage
Same name in other branches
- 8.9.x core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::setMessage()
- 10 core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::setMessage()
- 11.x core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::setMessage()
Sets the message to be displayed to the user.
Parameters
string $message: The message to display after form is submitted.
Return value
$this
1 method overrides ContactFormInterface::setMessage()
- ContactForm::setMessage in core/
modules/ contact/ src/ Entity/ ContactForm.php - Sets the message to be displayed to the user.
File
-
core/
modules/ contact/ src/ ContactFormInterface.php, line 70
Class
- ContactFormInterface
- Provides an interface defining a contact form 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.