public static Drupal::currentUser()
Gets the current active user.
Return value
\Drupal\Core\Session\AccountProxyInterface
File
- core/lib/Drupal.php, line 246
- Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
1 2 3 | public static function currentUser() { return static ::getContainer()->get( 'current_user' ); } |
Please login to continue.