AbstractTokenSubscriber
class AbstractTokenSubscriber implements EventSubscriberInterface
Class AbstractTokenSubscriber
Properties
string | $entity | ||
array | $tokenNames |
Methods
No description
No description
Determine whether this token-handler should be used with the given processor.
Register the declared tokens.
Get all custom field tokens of $entity
Alter the query which prepopulates mailing data for scheduled reminders.
Populate the token data.
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 57
static
getSubscribedEvents()
at line 82
__construct($entity, array $tokenNames = array())
at line 97
bool
checkActive( $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 107
registerTokens( $e)
Register the declared tokens.
at line 127
array
getCustomTokens(string $entity)
Get all custom field tokens of $entity
at line 147
alterActionScheduleQuery( $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 156
evaluateTokens( $e)
Populate the token data.
at line 185
mixed
prefetch( $e)
To perform a bulk lookup before rendering tokens, override this function and return the prefetched data.
at line 202
abstract mixed
evaluateToken( $row, string $entity, string $field, mixed $prefetch = NULL)
Evaluate the content of a single token.