function Token::resetInfo

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::resetInfo()
  2. 10 core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::resetInfo()
  3. 11.x 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 459

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,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.