userSession->getUser(); return $user ? $user->getUID() : ''; } public function getIsoCode(): string { return $this->l10n->getUserLanguage($this->userSession->getUser()); } public function getCountryCode(): string { $isoCodes = explode('_', $this->getIsoCode()); return $isoCodes[1] ?? 'us'; } public function getLangCode(): string { $isoCodes = explode('_', $this->getIsoCode()); return $isoCodes[0]; } }