You are here

public function MailInterface::setKey in Simplenews 3.x

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

Set the mail key.

Parameters

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

2 methods override MailInterface::setKey()
MailEntity::setKey in src/Mail/MailEntity.php
Set the mail key.
MailTest::setKey in src/Mail/MailTest.php
Set the mail key.

File

src/Mail/MailInterface.php, line 117

Class

MailInterface
A newsletter mail.

Namespace

Drupal\simplenews\Mail

Code

public function setKey($key);