You are here

function MailInterface::getTokenContext in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::getTokenContext()
  2. 3.x src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::getTokenContext()

Returns the token context to be used with token replacements.

Return value

array An array of objects as required by token_replace().

2 methods override MailInterface::getTokenContext()
MailEntity::getTokenContext in src/Mail/MailEntity.php
Returns the token context to be used with token replacements.
MailTest::getTokenContext in src/Mail/MailTest.php
Returns the token context to be used with token replacements.

File

src/Mail/MailInterface.php, line 99

Class

MailInterface
A newsletter mail.

Namespace

Drupal\simplenews\Mail

Code

function getTokenContext();