function TimeZoneResolver::__construct
Same name and namespace in other branches
- 11.x core/modules/system/src/TimeZoneResolver.php \Drupal\system\TimeZoneResolver::__construct()
- 10 core/modules/system/src/TimeZoneResolver.php \Drupal\system\TimeZoneResolver::__construct()
- 9 core/modules/system/src/TimeZoneResolver.php \Drupal\system\TimeZoneResolver::__construct()
- 8.9.x core/modules/system/src/TimeZoneResolver.php \Drupal\system\TimeZoneResolver::__construct()
TimeZoneResolver constructor.
Parameters
\Drupal\Core\Session\AccountInterface $currentUser: The current user.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.
File
-
core/
modules/ system/ src/ TimeZoneResolver.php, line 30
Class
- TimeZoneResolver
- Event handler that resolves time zone based on site and user configuration.
Namespace
Drupal\systemCode
public function __construct(private AccountInterface $currentUser, protected ConfigFactoryInterface $configFactory) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.