function TestSessionBag::setFlag
Same name in other branches
- 8.9.x core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::setFlag()
- 10 core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::setFlag()
- 11.x core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::setFlag()
Sets the test flag.
File
-
core/
modules/ system/ tests/ modules/ session_test/ src/ Session/ TestSessionBag.php, line 44
Class
- TestSessionBag
- Test session container.
Namespace
Drupal\session_test\SessionCode
public function setFlag() {
$this->attributes['test_flag'] = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.