Unverified Commit bc8ba878 authored by alexpott's avatar alexpott
Browse files

Issue #2972300 by msankhala, joachim: badly worded @return for getPreferredLangcode()

parent 7ee41bff
...@@ -76,10 +76,12 @@ public function isAnonymous(); ...@@ -76,10 +76,12 @@ public function isAnonymous();
* language if the user has no language preference. * language if the user has no language preference.
* *
* @return string * @return string
* The language code that is preferred by the account. If the preferred * Returned language code depends upon following:
* language is not set or is a language not configured anymore on the site, * - The user preferred language code is returned if set in the account.
* the site default is returned or an empty string is returned (if * - If the user has no preferred language and $fallback_to_default is TRUE
* $fallback_to_default is FALSE). * then the site default language code is returned.
* - If the user has no preferred language and $fallback_to_default is FALSE
* then empty string is returned.
*/ */
public function getPreferredLangcode($fallback_to_default = TRUE); public function getPreferredLangcode($fallback_to_default = TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment