public function MailTest::getFromFormatted in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getFromFormatted()
- 8 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 66
Class
- MailTest
- Example mail implementation used for tests.
Namespace
Drupal\simplenews\MailCode
public function getFromFormatted() {
return 'Test <simpletest@example.com>';
}