public function MailInterface::getKey in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::getKey()
- 8 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::getKey()
Returns the mail key to be used for mails.
Return value
string The mail key, either test or node.
2 methods override MailInterface::getKey()
- MailEntity::getKey in src/
Mail/ MailEntity.php - Returns the mail key to be used for mails.
- MailTest::getKey in src/
Mail/ MailTest.php - Returns the mail key to be used for mails.
File
- src/
Mail/ MailInterface.php, line 109
Class
- MailInterface
- A newsletter mail.
Namespace
Drupal\simplenews\MailCode
public function getKey();