You are here

public function ContactEmailer::setContactMessage in Contact Emails 8

Set the contact form.

Parameters

object $contactMessage: The contact message.

File

src/ContactEmailer.php, line 104

Class

ContactEmailer
Class ContactEmailer.

Namespace

Drupal\contact_emails

Code

public function setContactMessage($contactMessage) {
  $this->contactForm = $contactMessage
    ->getContactForm()
    ->id();
  $this->contactMessage = $contactMessage;
}