Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NativeSessionStorage.php

function NativeSessionStorage::setMetadataBag

2 calls to NativeSessionStorage::setMetadataBag()
NativeSessionStorage::__construct in vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
Depending on how you want the storage driver to behave you probably want to override this constructor entirely.
PhpBridgeSessionStorage::__construct in vendor/symfony/http-foundation/Session/Storage/PhpBridgeSessionStorage.php
Depending on how you want the storage driver to behave you probably want to override this constructor entirely.

File

vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php, line 288

Class

NativeSessionStorage
This provides a base class for session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function setMetadataBag(?MetadataBag $metaBag) : void {
    $this->metadataBag = $metaBag ?? new MetadataBag();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal