TimeZoneResolver::$currentUser

Same name in other branches
  1. 9 core/modules/system/src/TimeZoneResolver.php \Drupal\system\TimeZoneResolver::currentUser
  2. 8.9.x core/modules/system/src/TimeZoneResolver.php \Drupal\system\TimeZoneResolver::currentUser
  3. 10 core/modules/system/src/TimeZoneResolver.php \Drupal\system\TimeZoneResolver::currentUser

The current user.

Type: \Drupal\Core\Session\AccountInterface

File

core/modules/system/src/TimeZoneResolver.php, line 34

Class

TimeZoneResolver
Event handler that resolves time zone based on site and user configuration.

Namespace

Drupal\system

Code

private $currentUser;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.