Message::setSubject

public Message::setSubject($subject) Sets the subject for the email. Parameters string $subject: The message subject. Overrides MessageInterface::setSubject File core/modules/contact/src/Entity/Message.php, line 88 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function setSubject($subject) { $this->set('subject', $subject); }

Message::setSenderName

public Message::setSenderName($sender_name) Sets the name of the message sender. Parameters string $sender_name: The name of the message sender. Overrides MessageInterface::setSenderName File core/modules/contact/src/Entity/Message.php, line 60 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function setSenderName($sender_name) { $this->set('name', $sender_name); }

Message::setSenderMail

public Message::setSenderMail($sender_mail) Sets the email address of the sender. Parameters string $sender_mail: The email address of the message sender. Overrides MessageInterface::setSenderMail File core/modules/contact/src/Entity/Message.php, line 74 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function setSenderMail($sender_mail) { $this->set('mail', $sender_mail); }

Message::setMessage

public Message::setMessage($message) Sets the email message to send. Parameters string $message: The message body. Overrides MessageInterface::setMessage File core/modules/contact/src/Entity/Message.php, line 102 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function setMessage($message) { $this->set('message', $message); }

Message::setCopySender

public Message::setCopySender($inform) Sets if the sender should receive a copy of this email or not. Parameters bool $inform: TRUE if a copy should be sent, FALSE if not. Overrides MessageInterface::setCopySender File core/modules/contact/src/Entity/Message.php, line 116 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function setCopySender($inform) { $this->set('copy', (bool) $inform); }

Message::isPersonal

public Message::isPersonal() Returns TRUE if this is the personal contact form. Return value bool TRUE if the message bundle is personal. Overrides MessageInterface::isPersonal File core/modules/contact/src/Entity/Message.php, line 39 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function isPersonal() { return $this->bundle() == 'personal'; }

Message::getSubject

public Message::getSubject() Returns the message subject. Return value string The message subject. Overrides MessageInterface::getSubject File core/modules/contact/src/Entity/Message.php, line 81 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function getSubject() { return $this->get('subject')->value; }

Message::getSenderName

public Message::getSenderName() Returns the name of the sender. Return value string The name of the message sender. Overrides MessageInterface::getSenderName File core/modules/contact/src/Entity/Message.php, line 53 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function getSenderName() { return $this->get('name')->value; }

Message::getSenderMail

public Message::getSenderMail() Returns the email address of the sender. Return value string The email address of the message sender. Overrides MessageInterface::getSenderMail File core/modules/contact/src/Entity/Message.php, line 67 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function getSenderMail() { return $this->get('mail')->value; }

Message::getPersonalRecipient

public Message::getPersonalRecipient() Returns the user this message is being sent to. Return value \Drupal\user\UserInterface The user entity of the recipient, NULL if this is not a personal message. Overrides MessageInterface::getPersonalRecipient File core/modules/contact/src/Entity/Message.php, line 123 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function getPersonalRecipient() { if ($this->isPersonal()) { return $this->