public function MailTest::getHeaders in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getHeaders()
- 3.x 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;
}