public function MailTest::getHeaders in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getHeaders()
- 8 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getHeaders()
Returns the mail headers.
Parameters
array $headers: The default mail headers.
Return value
array Mail headers as an array.
Overrides MailInterface::getHeaders
File
- src/
Mail/ MailTest.php, line 73
Class
- MailTest
- Example mail implementation used for tests.
Namespace
Drupal\simplenews\MailCode
public function getHeaders(array $headers) {
$headers['X-Simplenews-Test'] = 'OK';
return $headers;
}