You are here

function MailInterface::getKey in Simplenews 8

Same name and namespace in other branches
  1. 8.2 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 107

Class

MailInterface
A newsletter mail.

Namespace

Drupal\simplenews\Mail

Code

function getKey();