Method | Description | |
---|---|---|
__construct ( Inpsyde\MultilingualPress\Module\UserAdminLanguage\LanguageRepository $language_repository ) | Constructor. Sets up the properties. | |
disable ( ) : boolean | Removes the filter. | |
enable ( ) : boolean | Adds the filter. | |
filter_locale ( string $locale ) : string | Filters the locale and returns the user admin language of the current user, if set. |
public __construct ( Inpsyde\MultilingualPress\Module\UserAdminLanguage\LanguageRepository $language_repository ) | ||
$language_repository | Inpsyde\MultilingualPress\Module\UserAdminLanguage\LanguageRepository | Language repository object. |
public filter_locale ( string $locale ) : string | ||
$locale | string | The current locale. |
return | string | The (filtered) locale. |