AccessManager::$currentUser
Same name in other branches
- 9 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::currentUser
- 8.9.x core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::currentUser
- 10 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::currentUser
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\AccessCode
protected $currentUser;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.