public function MailTest::getFromFormatted in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getFromFormatted()
- 3.x src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getFromFormatted()
Returns the formatted from mail address.
Return value
string The mail address with a name.
Overrides MailInterface::getFromFormatted
File
- src/
Mail/ MailTest.php, line 40
Class
- MailTest
- Example mail implementation used for tests.
Namespace
Drupal\simplenews\MailCode
public function getFromFormatted() {
return 'Test <simpletest@example.com>';
}