function SimplenewsSourceEntity::getTokenContext in Simplenews 7.2
Implements SimplenewsSourceInterface::getTokenContext().
Overrides SimplenewsSourceInterface::getTokenContext
5 calls to SimplenewsSourceEntity::getTokenContext()
- SimplenewsSourceEntity::buildFooter in includes/
simplenews.source.inc - Builds the themed footer.
- SimplenewsSourceEntity::getBodyWithFormat in includes/
simplenews.source.inc - Get the body with the requested format.
- SimplenewsSourceEntity::getFooterWithFormat in includes/
simplenews.source.inc - Get the footer in the specified format.
- SimplenewsSourceEntity::getHeaders in includes/
simplenews.source.inc - Implements SimplenewsSourceInterface::getHeaders().
- SimplenewsSourceEntity::getSubject in includes/
simplenews.source.inc - Implements SimplenewsSourceInterface::getSubject().
File
- includes/
simplenews.source.inc, line 490 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceEntity
- Default source class for entities.
Code
function getTokenContext() {
return array(
'newsletter' => $this
->getNewsletter(),
'simplenews_subscriber' => $this
->getSubscriber(),
$this
->getEntityType() => $this
->getEntity(),
);
}