function MailEntity::getEntity in Simplenews 8
Returns the used entity for this mail.
Return value
\Drupal\Core\Entity\ContentEntityInterface
Overrides MailInterface::getEntity
2 calls to MailEntity::getEntity()
- MailEntity::build in src/
Mail/ MailEntity.php - Build the entity object.
- MailEntity::getTokenContext in src/
Mail/ MailEntity.php - Returns the token context to be used with token replacements.
File
- src/
Mail/ MailEntity.php, line 230
Class
- MailEntity
- Default mail class for entities.
Namespace
Drupal\simplenews\MailCode
function getEntity() {
return $this->entity;
}