You are here

public function EmailQueue::queueMail in Search API Saved Searches 8

Queues an e-mail to be sent.

Parameters

array $args: The arguments that should be passed when sending the mail.

See also

\Drupal\Core\Mail\MailManagerInterface::mail()

File

src/Service/EmailQueue.php, line 45

Class

EmailQueue
Provides functionality for sending e-mails at the end of the page request.

Namespace

Drupal\search_api_saved_searches\Service

Code

public function queueMail(array $args) {
  $this->mails[] = $args;
}