CurrentUserContext::$account
Same name in other branches
- 9 core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::account
- 10 core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::account
- 11.x core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::account
The current user.
Type: \Drupal\Core\Session\AccountInterface
File
-
core/
modules/ user/ src/ ContextProvider/ CurrentUserContext.php, line 24
Class
- CurrentUserContext
- Sets the current user as a context.
Namespace
Drupal\user\ContextProviderCode
protected $account;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.