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

Breadcrumb

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

function SessionStorageInterface::getBag

Gets a SessionBagInterface by name.

Throws

\InvalidArgumentException If the bag does not exist

2 methods override SessionStorageInterface::getBag()
MockArraySessionStorage::getBag in vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php
Gets a SessionBagInterface by name.
NativeSessionStorage::getBag in vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
Gets a SessionBagInterface by name.

File

vendor/symfony/http-foundation/Session/Storage/SessionStorageInterface.php, line 108

Class

SessionStorageInterface
StorageInterface.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function getBag(string $name) : SessionBagInterface;

API Navigation

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