Documentation

TokenCompatSubscriber 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
inheritDoc
Return values
array<string|int, mixed>

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

        
On this page

Search results