You are here

public function Token::resetInfo 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::resetInfo()

Resets metadata describing supported tokens.

File

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

Class

Token
Drupal placeholder/token replacement system.

Namespace

Drupal\Core\Utility

Code

public function resetInfo() {
  $this->tokenInfo = NULL;
  $this->cacheTagsInvalidator
    ->invalidateTags([
    static::TOKEN_INFO_CACHE_TAG,
  ]);
}