Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Flarum
Core
User
getLocaleAttribute
Flarum\Core\User::getLocaleAttribute PHP Méthode
User Class Documentation
Afficher le fichier
Open project: flarum/core
getLocaleAttribute()
public
méthode
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
Résultat
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