You are here

public function ContactFormInterface::setMessage in Drupal 10

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

Code

public function setMessage($message);