The current user.
Type: \Drupal\Core\Session\AccountInterface
File
- core/lib/Drupal/Core/Access/AccessManager.php, line 48
Class
- AccessManager
- Attaches access check services to routes and runs them on request.
Namespace
Drupal\Core\Access
Code
protected $currentUser;
Please login to continue.