Sets metadata describing supported tokens.
array $tokens: Token metadata that has an identical structure to the return value of hook_token_info().
hook_token_info()
public function setInfo(array $tokens) { $this->tokenInfo = $tokens; }