TokenCompatSubscriber
in package
implements
EventSubscriberInterface
Class TokenCompatSubscriber
Table of Contents
Interfaces
- EventSubscriberInterface
Methods
- getSubscribedEvents() : array<string|int, mixed>
- onRender() : void
- Apply the various CRM_Utils_Token helpers.
- setupSmartyAliases() : mixed
- Interpret the variable `$context['smartyTokenAlias']` (e.g. `mySmartyField' => `tkn_entity.tkn_field`).
Methods
getSubscribedEvents()
public
static getSubscribedEvents() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>onRender()
Apply the various CRM_Utils_Token helpers.
public
onRender(TokenRenderEvent $e) : void
Parameters
- $e : TokenRenderEvent
setupSmartyAliases()
Interpret the variable `$context['smartyTokenAlias']` (e.g. `mySmartyField' => `tkn_entity.tkn_field`).
public
setupSmartyAliases(TokenValueEvent $e) : mixed
We need to ensure that any tokens like {tkn_entity.tkn_field}
are hydrated, so
we pretend that they are in use.
Parameters
- $e : TokenValueEvent