You are here

public function ContactForm::getMessage in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contact/src/Entity/ContactForm.php \Drupal\contact\Entity\ContactForm::getMessage()
  2. 9 core/modules/contact/src/Entity/ContactForm.php \Drupal\contact\Entity\ContactForm::getMessage()

Returns the message to be displayed to user.

Return value

string A user message.

Overrides ContactFormInterface::getMessage

File

core/modules/contact/src/Entity/ContactForm.php, line 113

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

public function getMessage() {
  return $this->message;
}