function MailInterface::setKey in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::setKey()
- 3.x src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::setKey()
Set the mail key.
Parameters
string $key: The mail key, either 'test' or 'node'.
2 methods override MailInterface::setKey()
- MailEntity::setKey in src/
Mail/ MailEntity.php - Set the mail key.
- MailTest::setKey in src/
Mail/ MailTest.php - Set the mail key.
File
- src/
Mail/ MailInterface.php, line 115
Class
- MailInterface
- A newsletter mail.
Namespace
Drupal\simplenews\MailCode
function setKey($key);