W3cubDocs

/Drupal 8

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

© 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::resetInfo/8.1.x