function MetadataBag::getCsrfTokenSeed
Same name in other branches
- 9 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::getCsrfTokenSeed()
- 10 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::getCsrfTokenSeed()
- 11.x core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::getCsrfTokenSeed()
Get the CSRF token seed.
Return value
string|null The per-session CSRF token seed or null when no value is set.
File
-
core/
lib/ Drupal/ Core/ Session/ MetadataBag.php, line 45
Class
- MetadataBag
- Provides a container for application specific session metadata.
Namespace
Drupal\Core\SessionCode
public function getCsrfTokenSeed() {
if (isset($this->meta[static::CSRF_TOKEN_SEED])) {
return $this->meta[static::CSRF_TOKEN_SEED];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.