The current user service.
Type: \Drupal\Core\Session\AccountProxyInterface
File
- core/lib/Drupal/Core/Session/AccountSwitcher.php, line 26
Class
- AccountSwitcher
- An implementation of AccountSwitcherInterface.
Namespace
Drupal\Core\Session
Code
protected $currentUser = array();
Please login to continue.