You are here

public function MetadataBag::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/MetadataBag.php \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag::__construct()
  2. 8.0 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::__construct()
Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Session/Storage/MetadataBag.php \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag::__construct()

Constructor.

Parameters

string $storageKey The key used to store bag in the session.:

int $updateThreshold The time to wait between two UPDATED updates:

1 call to MetadataBag::__construct()
MetadataBag::__construct in core/lib/Drupal/Core/Session/MetadataBag.php
Constructs a new metadata bag instance.
1 method overrides MetadataBag::__construct()
MetadataBag::__construct in core/lib/Drupal/Core/Session/MetadataBag.php
Constructs a new metadata bag instance.

File

vendor/symfony/http-foundation/Session/Storage/MetadataBag.php, line 62

Class

MetadataBag
Metadata container.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function __construct($storageKey = '_sf2_meta', $updateThreshold = 0) {
  $this->storageKey = $storageKey;
  $this->updateThreshold = $updateThreshold;
}