Returns metadata describing supported tokens.
The metadata array contains token type, name, and description data as well as an optional pointer indicating that the token chains to another set of tokens.
array An associative array of token information, grouped by token type. The array structure is identical to that of hook_token_info().
public function getInfo() {
if (is_null($this->tokenInfo)) {
$this->tokenInfo = $this->moduleHandler
->invokeAll('token_info');
$this->moduleHandler
->alter('token_info', $this->tokenInfo);
}
return $this->tokenInfo;
}