You are here

public function MetadataBag::setCsrfTokenSeed in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

File

core/lib/Drupal/Core/Session/MetadataBag.php, line 40
Contains \Drupal\Core\Session\MetadataBag.

Class

MetadataBag
Provides a container for application specific session metadata.

Namespace

Drupal\Core\Session

Code

public function setCsrfTokenSeed($csrf_token_seed) {
  $this->meta[static::CSRF_TOKEN_SEED] = $csrf_token_seed;
}