public function MailEntity::getKey in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getKey()
- 3.x src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getKey()
Returns the mail key to be used for mails.
Return value
string The mail key, either test or node.
Overrides MailInterface::getKey
1 call to MailEntity::getKey()
- MailEntity::buildBody in src/
Mail/ MailEntity.php - Build the themed newsletter body.
File
- src/
Mail/ MailEntity.php, line 165
Class
- MailEntity
- Default mail class for entities.
Namespace
Drupal\simplenews\MailCode
public function getKey() {
return $this->key;
}