You are here

protected property CurrentUserContext::$account in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::account
  2. 9 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\ContextProvider

Code

protected $account;