public function Token::resetInfo in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::resetInfo()
- 9 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 457
Class
- Token
- Drupal placeholder/token replacement system.
Namespace
Drupal\Core\UtilityCode
public function resetInfo() {
$this->tokenInfo = NULL;
$this->cacheTagsInvalidator
->invalidateTags([
static::TOKEN_INFO_CACHE_TAG,
]);
}