You are here

protected function ContactEmail::getEmailFromSenderMail in Contact Emails 8

Get email address from the sender of the contact message.

Parameters

\Drupal\contact\MessageInterface $message: The contact message.

Return value

string An email address.

2 calls to ContactEmail::getEmailFromSenderMail()
ContactEmail::getRecipients in src/Entity/ContactEmail.php
Get the email recipient(s).
ContactEmail::getReplyTo in src/Entity/ContactEmail.php
Get the reply-to email address.

File

src/Entity/ContactEmail.php, line 490

Class

ContactEmail
Defines the Contact Email entity.

Namespace

Drupal\contact_emails\Entity

Code

protected function getEmailFromSenderMail(MessageInterface $message) {
  return $message
    ->getSenderMail();
}