Token::resetInfo

public Token::resetInfo()

Resets metadata describing supported tokens.

File

core/lib/Drupal/Core/Utility/Token.php, line 404

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]);
}
doc_Drupal
2016-10-29 09:48:34
Comments
Leave a Comment

Please login to continue.