function TestSessionBag::__construct
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::__construct()
- 10 core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::__construct()
- 9 core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::__construct()
- 8.9.x core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::__construct()
Constructs a new TestSessionBag object.
Parameters
string $storageKey: The key used to store test attributes.
File
-
core/
modules/ system/ tests/ modules/ session_test/ src/ Session/ TestSessionBag.php, line 32
Class
- TestSessionBag
- Test session container.
Namespace
Drupal\session_test\SessionCode
public function __construct(protected $storageKey = '_dp_session_test') {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.