You are here

function MailEntity::setKey in Simplenews 8

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

Set the mail key.

Parameters

string $key: The mail key, either 'test' or 'node'.

Overrides MailInterface::setKey

File

src/Mail/MailEntity.php, line 177

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

function setKey($key) {
  $this->key = $key;
}