Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Session/AccountInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
74 * @param bool $fallback_to_default | 74 * @param bool $fallback_to_default |
75 * (optional) Whether the return value will fall back to the site default | 75 * (optional) Whether the return value will fall back to the site default |
76 * language if the user has no language preference. | 76 * language if the user has no language preference. |
77 * | 77 * |
78 * @return string | 78 * @return string |
79 * The language code that is preferred by the account. If the preferred | 79 * Returned language code depends upon following: |
80 * language is not set or is a language not configured anymore on the site, | 80 * - The user preferred language code is returned if set in the account. |
81 * the site default is returned or an empty string is returned (if | 81 * - If the user has no preferred language and $fallback_to_default is TRUE |
82 * $fallback_to_default is FALSE). | 82 * then the site default language code is returned. |
83 * - If the user has no preferred language and $fallback_to_default is FALSE | |
84 * then empty string is returned. | |
83 */ | 85 */ |
84 public function getPreferredLangcode($fallback_to_default = TRUE); | 86 public function getPreferredLangcode($fallback_to_default = TRUE); |
85 | 87 |
86 /** | 88 /** |
87 * Returns the preferred administrative language code of the account. | 89 * Returns the preferred administrative language code of the account. |
111 * \Drupal\Core\Session\AccountInterface::getDisplayName() instead. | 113 * \Drupal\Core\Session\AccountInterface::getDisplayName() instead. |
112 * | 114 * |
113 * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. | 115 * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. |
114 * Use \Drupal\Core\Session\AccountInterface::getAccountName() or | 116 * Use \Drupal\Core\Session\AccountInterface::getAccountName() or |
115 * \Drupal\user\UserInterface::getDisplayName() instead. | 117 * \Drupal\user\UserInterface::getDisplayName() instead. |
118 * | |
119 * @see https://www.drupal.org/node/2572493 | |
116 */ | 120 */ |
117 public function getUsername(); | 121 public function getUsername(); |
118 | 122 |
119 /** | 123 /** |
120 * Returns the unaltered login name of this account. | 124 * Returns the unaltered login name of this account. |