public function MailInterface::setKey in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::setKey()
- 8 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 117
Class
- MailInterface
- A newsletter mail.
Namespace
Drupal\simplenews\MailCode
public function setKey($key);