public function MailEntity::getNewsletter in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getNewsletter()
- 8 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getNewsletter()
Returns the corresponding newsletter.
Return value
\Drupal\simplenews\NewsletterInterface The newsletter.
2 calls to MailEntity::getNewsletter()
- MailEntity::buildBody in src/
Mail/ MailEntity.php - Build the themed newsletter body.
- MailEntity::getTokenContext in src/
Mail/ MailEntity.php - Returns the token context to be used with token replacements.
File
- src/
Mail/ MailEntity.php, line 80
Class
- MailEntity
- Default mail class for entities.
Namespace
Drupal\simplenews\MailCode
public function getNewsletter() {
return $this->newsletter;
}