public function MetadataBag::clearCsrfTokenSeed in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::clearCsrfTokenSeed()
Clear the CSRF token seed.
File
- core/
lib/ Drupal/ Core/ Session/ MetadataBag.php, line 66
Class
- MetadataBag
- Provides a container for application specific session metadata.
Namespace
Drupal\Core\SessionCode
public function clearCsrfTokenSeed() {
@trigger_error('Calling ' . __METHOD__ . '() is deprecated in drupal:9.2.0 and will be removed in drupal:10.0.0. Use \\Drupal\\Core\\Session\\MetadataBag::stampNew() instead. See https://www.drupal.org/node/3187914', E_USER_DEPRECATED);
unset($this->meta[static::CSRF_TOKEN_SEED]);
}