public function TestSessionBag::hasFlag in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php \Drupal\session_test\Session\TestSessionBag::hasFlag()
Returns TRUE if the test flag is set.
Return value
bool TRUE when flag is set, FALSE otherwise.
File
- core/
modules/ system/ tests/ modules/ session_test/ src/ Session/ TestSessionBag.php, line 54
Class
- TestSessionBag
- Test session container.
Namespace
Drupal\session_test\SessionCode
public function hasFlag() {
return !empty($this->attributes['test_flag']);
}