public function User::getTimeZone in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Entity/User.php \Drupal\user\Entity\User::getTimeZone()
Returns the timezone of this account.
Return value
string Name of the timezone.
Overrides AccountInterface::getTimeZone
File
- core/
modules/ user/ src/ Entity/ User.php, line 309 - Contains \Drupal\user\Entity\User.
Class
- User
- Defines the user entity class.
Namespace
Drupal\user\EntityCode
public function getTimeZone() {
return $this
->get('timezone')->value;
}