|}
There is a lot going on with tokens in CiviCRM. There is a whole file <code>CRM/Utils/Token.php</code> to deal with tokens. 45 methods. 2 properties.
It's not just 'getTokens()' that get's called, there is also a function to flattenTokens and getTokenDetails()