You are here

public function MailEntity::setKey in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::setKey()
  2. 8 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 158

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

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