function TimeZoneResolver::getSubscribedEvents
Overrides EventSubscriberInterface::getSubscribedEvents
File
-
core/
modules/ system/ src/ TimeZoneResolver.php, line 74
Class
- TimeZoneResolver
- Event handler that resolves time zone based on site and user configuration.
Namespace
Drupal\systemCode
public static function getSubscribedEvents() : array {
$events[ConfigEvents::SAVE][] = [
'onConfigSave',
0,
];
// The priority for this must run directly after the authentication
// subscriber.
$events[KernelEvents::REQUEST][] = [
'setDefaultTimeZone',
299,
];
$events[AccountEvents::SET_USER][] = [
'setDefaultTimeZone',
];
return $events;
}