You are here

function MailInterface::getEntity in Simplenews 8

Returns the used entity for this mail.

Return value

\Drupal\Core\Entity\ContentEntityInterface

2 methods override MailInterface::getEntity()
MailEntity::getEntity in src/Mail/MailEntity.php
Returns the used entity for this mail.
MailTest::getEntity in src/Mail/MailTest.php
@inheritDoc

File

src/Mail/MailInterface.php, line 17

Class

MailInterface
A newsletter mail.

Namespace

Drupal\simplenews\Mail

Code

function getEntity();