diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index e26cb36..19272c5 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -2631,9 +2631,9 @@ function drupal_language_initialize() { * * @see Drupal\Core\Language\LanguageManager * - * @param $type + * @param string $type * The type of language object needed, e.g. LANGUAGE_TYPE_INTERFACE. - * @param $reset + * @param bool $reset * TRUE to reset the statically cached language object for the type, or for * all types if $type is NULL. */ @@ -2689,7 +2689,7 @@ function language_types_get_all() { /** * Returns a list of the built-in language types. * - * @return + * @return array * An array of key-values pairs where the key is the language type name and * the value is its configurability (TRUE/FALSE). */ @@ -2718,7 +2718,7 @@ function language_multilingual() { * (optional) Specifies the state of the languages that have to be returned. * It can be: LANGUAGE_CONFIGURABLE, LANGUAGE_LOCKED, LANGUAGE_ALL. * - * @return + * @return array * An associative array of languages, keyed by the language code, ordered by * weight ascending and name ascending. */ @@ -2773,7 +2773,7 @@ function language_list($flags = LANGUAGE_CONFIGURABLE) { * An integer value that is used as the start value for the weights of the * locked languages. * - * @return + * @return array * An array of language objects. */ function language_default_locked_languages($weight = 0) { @@ -2805,10 +2805,10 @@ function language_default_locked_languages($weight = 0) { /** * Loads a language object from the database. * - * @param $langcode + * @param string $langcode * The language code. * - * @return + * @return Drupal\core\Language\Language | false * A fully-populated language object or FALSE. */ function language_load($langcode) { @@ -2819,10 +2819,10 @@ function language_load($langcode) { /** * Produced the printed name for a language for display. * - * @param $langcode + * @param string $langcode * The language code. * - * @return + * @return string * The printed name of the language. */ function language_name($langcode) { @@ -2842,8 +2842,11 @@ function language_name($langcode) { /** * Checks if a language is locked. * - * @param $langcode + * @param string $langcode * The language code. + * + * @return bool + * Returns whether the language is locked. */ function language_is_locked($langcode) { $language = language_load($langcode); @@ -2853,7 +2856,7 @@ function language_is_locked($langcode) { /** * Returns the default language used on the site. * - * @return + * @return Drupal\Core\Language\Language * A language object. */ function language_default() {