Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Flarum
Core
User
getLocaleAttribute
Flarum\Core\User::getLocaleAttribute PHP Method
User Class Documentation
Show file
Open project: flarum/core
getLocaleAttribute()
public
method
Get the user's locale, falling back to the forum's default if they haven't set one.
public
getLocaleAttribute
(
string
$value
) :
string
$value
string
return
string
public function getLocaleAttribute($value) { return $value ?: Application::config('locale', 'en'); }
User
accessTokens
activate
addPreference
boot
can
cannot
changeAvatarPath
changeBio
changeEmail
changePassword
checkPassword
getAlertableNotificationTypes
getAvatarUrlAttribute
getGate
getLocaleAttribute
getNewNotificationsCount
getNotificationPreferenceKey
getPermissions
getPreference
getPreferencesAttribute
getSession
getUnreadNotifications
getUnreadNotificationsCount
groups
hasPermission
hasPermissionLike
isAdmin
isGuest
markAllAsRead
markNotificationsAsRead
notifications
permissions
posts
read
register
rename
requestEmailChange
setGate
setHasher
setPasswordAttribute
setPreference
setPreferencesAttribute
setSession
shouldAlert
shouldEmail
updateLastSeen