public function MailTest::__construct in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::__construct()
- 8 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::__construct()
MailTest constructor.
Parameters
string $format: The mail format as string, either 'plain' or 'html'.
File
- src/
Mail/ MailTest.php, line 25
Class
- MailTest
- Example mail implementation used for tests.
Namespace
Drupal\simplenews\MailCode
public function __construct($format) {
$this->format = $format;
}