You are here

public function Token::setInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::setInfo()

Sets metadata describing supported tokens.

Parameters

array $tokens: Token metadata that has an identical structure to the return value of hook_token_info().

See also

hook_token_info()

File

core/lib/Drupal/Core/Utility/Token.php, line 402
Contains \Drupal\Core\Utility\Token.

Class

Token
Drupal placeholder/token replacement system.

Namespace

Drupal\Core\Utility

Code

public function setInfo(array $tokens) {
  $this->tokenInfo = $tokens;
}