TokenProcessor
class TokenProcessor
Properties
array | $context | ||
protected EventDispatcherInterface | $dispatcher | ||
protected array | $messages | ||
array | $rowContexts | DO NOT access field this directly. Use TokenRow. This is marked as public only to benefit TokenRow. | |
array | $rowValues | DO NOT access field this directly. Use TokenRow. This is marked as public only to benefit TokenRow. | |
protected array | $tokens | A list of available tokens | |
protected array | $listTokens | A list of available tokens formatted for display | |
protected | $next |
Methods
No description
Register a string for which we'll need to merge in tokens.
No description
No description
Get a list of all tokens used in registered messages.
No description
No description
Get a list of all unique values for a given context field, whether defined at the processor or row level.
Get the list of available tokens.
Get the list of available tokens, formatted for display
Compute and store token values.
Details
at line 87
__construct(EventDispatcherInterface $dispatcher, array $context)
at line 106
TokenProcessor
addMessage(string $name, string $value, string $format)
Register a string for which we'll need to merge in tokens.
at line 120
TokenRow
addRow()
Add a row of data.
at line 139
TokenProcessor
addToken(array $params)
at line 152
array
getMessage(string $name)
at line 161
array
getMessageTokens()
Get a list of all tokens used in registered messages.
at line 173
getRow($key)
at line 180
Traversable
getRows()
at line 194
array
getContextValues(string $field, $subfield = NULL)
Get a list of all unique values for a given context field, whether defined at the processor or row level.
at line 228
array
getTokens()
Get the list of available tokens.
at line 243
array
listTokens()
Get the list of available tokens, formatted for display
at line 256
evaluate()
Compute and store token values.
at line 272
string
render(string $name, TokenRow|int $row)
Render a message.