ContactForm::setMessage

public ContactForm::setMessage($message)

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 109

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

public function setMessage($message) {
  $this->message = $message;
  return $this;
}
doc_Drupal
2016-10-29 08:56:21
Comments
Leave a Comment

Please login to continue.