You are here

public function MailInterface::getKey in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::getKey()
  2. 3.x 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\Mail

Code

public function getKey();