diff -u b/core/lib/Drupal/Core/Language/LanguageDefault.php b/core/lib/Drupal/Core/Language/LanguageDefault.php --- b/core/lib/Drupal/Core/Language/LanguageDefault.php +++ b/core/lib/Drupal/Core/Language/LanguageDefault.php @@ -29,11 +29,11 @@ /** * Constructs the default language object. * - * @param array $options + * @param array $values * The properties used to construct the default language. */ - public function __construct(array $options) { - $this->set(new Language($options)); + public function __construct(array $values) { + $this->set(new Language($values)); } /** diff -u b/core/lib/Drupal/Core/Language/LanguageManager.php b/core/lib/Drupal/Core/Language/LanguageManager.php --- b/core/lib/Drupal/Core/Language/LanguageManager.php +++ b/core/lib/Drupal/Core/Language/LanguageManager.php @@ -214,9 +214,10 @@ * Some common languages with their English and native names. * * Language codes are defined by the W3C language tags document for - * interoperability. Language codes typically have a language and optionally, - * a script or regional variant name. See - * http://www.w3.org/International/articles/language-tags/ for more information. + * interoperability. Language codes typically have a language and, optionally, + * a script or regional variant name. See: + * http://www.w3.org/International/articles/language-tags/ for more + * information. * * This list is based on languages available from localize.drupal.org. See * http://localize.drupal.org/issues for information on how to add languages @@ -332,9 +333,9 @@ /** * {@inheritdoc} * - * This function is a noop since the configuration can not be overridden by + * This function is a noop since the configuration cannot be overridden by * language unless the Language module is enabled. That replaces the default - * language manger with a configurable language manager. + * language manager with a configurable language manager. * * @see \Drupal\language\ConfigurableLanguageManager::setConfigOverrideLanguage() */ diff -u b/core/lib/Drupal/Core/Language/LanguageManagerInterface.php b/core/lib/Drupal/Core/Language/LanguageManagerInterface.php --- b/core/lib/Drupal/Core/Language/LanguageManagerInterface.php +++ b/core/lib/Drupal/Core/Language/LanguageManagerInterface.php @@ -80,8 +80,8 @@ * Returns a list of languages set up on the site. * * @param int $flags - * (optional) Specifies the state of the languages that have to be - * returned. It can be: Language::STATE_CONFIGURABLE, + * (optional) Specifies the state of the languages that have to be returned. + * It can be: Language::STATE_CONFIGURABLE, * Language::STATE_LOCKED, Language::STATE_ALL. * * @return array