You are here

public function TestSessionBag::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::__construct()
  2. 9 core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::__construct()

Constructs a new TestSessionBag object.

Parameters

string $storage_key: The key used to store test attributes.

File

core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php, line 37

Class

TestSessionBag
Test session container.

Namespace

Drupal\session_test\Session

Code

public function __construct($storage_key = '_dp_session_test') {
  $this->storageKey = $storage_key;
}