public function ContactFormInterface::setMessage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::setMessage()
- 10 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);