public function MailInterface::getTokenContext in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::getTokenContext()
- 8 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 101
Class
- MailInterface
- A newsletter mail.
Namespace
Drupal\simplenews\MailCode
public function getTokenContext();