MetadataBag::__construct

public MetadataBag::__construct(Settings $settings)

Constructs a new metadata bag instance.

Parameters

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

Overrides MetadataBag::__construct

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);
}
doc_Drupal
2016-10-29 09:28:20
Comments
Leave a Comment

Please login to continue.