AbstractTokenSubscriber
abstract class AbstractTokenSubscriber implements EventSubscriberInterface
Class AbstractTokenSubscriber
Properties
string | $entity | ||
array | $tokenNames | ||
array | $activeTokens |
Methods
No description
No description
Determine whether this token-handler should be used with the given processor.
Alter the query which prepopulates mailing data for scheduled reminders.
To handle variable tokens, override this function and return the active tokens.
To perform a bulk lookup before rendering tokens, override this function and return the prefetched data.
Evaluate the content of a single token.
Details
at line 58
static
getSubscribedEvents()
at line 91
__construct($entity, array $tokenNames = [])
at line 106
bool
checkActive(TokenProcessor $processor)
Determine whether this token-handler should be used with the given processor.
To short-circuit token-processing in irrelevant contexts, override this.
at line 116
registerTokens(TokenRegisterEvent $e)
Register the declared tokens.
at line 140
alterActionScheduleQuery(MailingQueryEvent $e)
Alter the query which prepopulates mailing data for scheduled reminders.
This is method is not always appropriate, but if you're specifically focused on scheduled reminders, it can be convenient.
at line 149
evaluateTokens(TokenValueEvent $e)
Populate the token data.
at line 174
mixed
getActiveTokens(TokenValueEvent $e)
To handle variable tokens, override this function and return the active tokens.
at line 190
mixed
prefetch(TokenValueEvent $e)
To perform a bulk lookup before rendering tokens, override this function and return the prefetched data.
at line 207
abstract mixed
evaluateToken(TokenRow $row, string $entity, string $field, mixed $prefetch = NULL)
Evaluate the content of a single token.