function MetadataBag::setCsrfTokenSeed
Same name in other branches
- 9 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::setCsrfTokenSeed()
- 8.9.x core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::setCsrfTokenSeed()
- 10 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::setCsrfTokenSeed()
Set the CSRF token seed.
Parameters
string $csrf_token_seed: The per-session CSRF token seed.
1 call to MetadataBag::setCsrfTokenSeed()
- MetadataBag::stampNew in core/
lib/ Drupal/ Core/ Session/ MetadataBag.php
File
-
core/
lib/ Drupal/ Core/ Session/ MetadataBag.php, line 36
Class
- MetadataBag
- Provides a container for application specific session metadata.
Namespace
Drupal\Core\SessionCode
public function setCsrfTokenSeed($csrf_token_seed) {
$this->meta[static::CSRF_TOKEN_SEED] = $csrf_token_seed;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.