The current user.
Type: \Drupal\Core\Session\AccountInterface
File
- core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 31
Class
- AccessDeniedSubscriber
- Redirects users when access is denied.
Namespace
Drupal\user\EventSubscriber
Code
protected $account;
Please login to continue.