public function MetadataBag::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/http-foundation/Session/Storage/MetadataBag.php \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag::__construct()
- 8 core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::__construct()
Same name and namespace in other branches
- 8.0 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.
Overrides MetadataBag::__construct
File
- core/
lib/ Drupal/ Core/ Session/ MetadataBag.php, line 29 - Contains \Drupal\Core\Session\MetadataBag.
Class
- MetadataBag
- Provides a container for application specific session metadata.
Namespace
Drupal\Core\SessionCode
public function __construct(Settings $settings) {
$update_threshold = $settings
->get('session_write_interval', 180);
parent::__construct('_sf2_meta', $update_threshold);
}