You are here

public function MailTest::getTokenContext in Simplenews 8

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

Returns the token context to be used with token replacements.

Return value

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

Overrides MailInterface::getTokenContext

File

src/Mail/MailTest.php, line 72

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

public function getTokenContext() {
  return array();
}