CRM_Core_TokenTrait
Table of Contents
Properties
- $basicTokens : mixed
- $customFieldTokens : mixed
Methods
- __construct() : mixed
- CRM_Entity_Tokens constructor.
- checkActive() : bool
- Check if the token processor is active.
- getActiveTokens() : mixed
- getReturnFields() : array<string|int, mixed>
- Find the fields that we need to get to construct the tokens requested.
- getCustomFieldTokens() : array<string|int, mixed>
- Get the tokens for custom fields
Properties
$basicTokens
private
mixed
$basicTokens
$customFieldTokens
private
mixed
$customFieldTokens
Methods
__construct()
CRM_Entity_Tokens constructor.
public
__construct() : mixed
checkActive()
Check if the token processor is active.
public
checkActive(TokenProcessor $processor) : bool
Parameters
- $processor : TokenProcessor
Return values
boolgetActiveTokens()
public
getActiveTokens(TokenValueEvent $e) : mixed
Parameters
- $e : TokenValueEvent
Tags
getReturnFields()
Find the fields that we need to get to construct the tokens requested.
public
getReturnFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —list of fields needed to generate those tokens
getCustomFieldTokens()
Get the tokens for custom fields
protected
getCustomFieldTokens() : array<string|int, mixed>
Return values
array<string|int, mixed> —token name => token label