W3cubDocs

/Drupal 8

public function MetadataBag::getCsrfTokenSeed

public 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\Session

Code

public function getCsrfTokenSeed() {
  if (isset($this->meta[static::CSRF_TOKEN_SEED])) {
    return $this->meta[static::CSRF_TOKEN_SEED];
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!MetadataBag.php/function/MetadataBag::getCsrfTokenSeed/8.1.x