You are here

public function MailTest::getTokenContext in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getTokenContext()
  2. 8 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 122

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

public function getTokenContext() {
  return [];
}