You are here

public function MailEntity::getKey in Simplenews 8.2

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

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

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