function MetadataBag::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::__construct()
  2. 10 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::__construct()
  3. 11.x core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::__construct()

Constructs a new metadata bag instance.

Parameters

\Drupal\Core\Site\Settings $settings: The settings instance.

File

core/lib/Drupal/Core/Session/MetadataBag.php, line 24

Class

MetadataBag
Provides a container for application specific session metadata.

Namespace

Drupal\Core\Session

Code

public function __construct(Settings $settings) {
    $update_threshold = $settings->get('session_write_interval', 180);
    parent::__construct('_sf2_meta', $update_threshold);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.