public Token::setInfo(array $tokens)
Sets metadata describing supported tokens.
array $tokens: Token metadata that has an identical structure to the return value of hook_token_info().
public function setInfo(array $tokens) { $this->tokenInfo = $tokens; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Utility!Token.php/function/Token::setInfo/8.1.x