You are here

function MailEntity::getKey in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getKey()
  2. 3.x src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getKey()

Returns the mail key to be used for mails.

Return value

string The mail key, either test or node.

Overrides MailInterface::getKey

1 call to MailEntity::getKey()
MailEntity::buildBody in src/Mail/MailEntity.php
Build the themed newsletter body.

File

src/Mail/MailEntity.php, line 184

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

function getKey() {
  return $this->key;
}