You are here

public function ContactForm::setReply in Drupal 9

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

Sets an auto-reply message to send to the message author.

Parameters

string $reply: The desired reply.

Return value

$this

Overrides ContactFormInterface::setReply

File

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

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

public function setReply($reply) {
  $this->reply = $reply;
  return $this;
}