public function SessionTestController::isLoggedIn in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php \Drupal\session_test\Controller\SessionTestController::isLoggedIn()
Only available if current user is logged in.
Return value
string A notification message.
1 string reference to 'SessionTestController::isLoggedIn'
- session_test.routing.yml in core/
modules/ system/ tests/ modules/ session_test/ session_test.routing.yml - core/modules/system/tests/modules/session_test/session_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ session_test/ src/ Controller/ SessionTestController.php, line 143 - Contains \Drupal\session_test\Controller\SessionTestController.
Class
- SessionTestController
- Controller providing page callbacks for the action admin interface.
Namespace
Drupal\session_test\ControllerCode
public function isLoggedIn() {
return [
'#markup' => $this
->t('User is logged in.'),
];
}