public function MailEntity::setKey in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::setKey()
- 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\MailCode
public function setKey($key) {
$this->key = $key;
}