public function MailEntity::setKey in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::setKey()
- 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 158
Class
- MailEntity
- Default mail class for entities.
Namespace
Drupal\simplenews\MailCode
public function setKey($key) {
$this->key = $key;
}