You are here

public function MailTest::getHeaders in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getHeaders()
  2. 3.x src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getHeaders()

Returns the mail headers.

Parameters

$headers: The default mail headers.

Return value

Mail headers as an array.

Overrides MailInterface::getHeaders

File

src/Mail/MailTest.php, line 44

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

public function getHeaders(array $headers) {
  $headers['X-Simplenews-Test'] = 'OK';
  return $headers;
}