X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FSession%2FAccountInterface.php;h=57f6f1d697f7268bd9d2a716f323fa9c6770c6cf;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=ba3ed9378cef417d7e9641bd33802a73a6d65eaa;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Session/AccountInterface.php b/web/core/lib/Drupal/Core/Session/AccountInterface.php index ba3ed9378..57f6f1d69 100644 --- a/web/core/lib/Drupal/Core/Session/AccountInterface.php +++ b/web/core/lib/Drupal/Core/Session/AccountInterface.php @@ -76,10 +76,12 @@ interface AccountInterface { * language if the user has no language preference. * * @return string - * The language code that is preferred by the account. If the preferred - * language is not set or is a language not configured anymore on the site, - * the site default is returned or an empty string is returned (if - * $fallback_to_default is FALSE). + * Returned language code depends upon following: + * - The user preferred language code is returned if set in the account. + * - If the user has no preferred language and $fallback_to_default is TRUE + * 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);