Commit e0a47b4f authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2239407 by holly.ross.drupal, YesCT, tstoeckler, alimac: Language...

Issue #2239407 by holly.ross.drupal, YesCT, tstoeckler, alimac: Language manager interface should not specify implementation details for getLanguages on the interface.
parent 4945bae2
Loading
Loading
Loading
Loading
+1 −2
Changes for core/lib/Drupal/Core/Language/LanguageManagerInterface.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -85,8 +85,7 @@ public function getDefaultLanguage();
   *   Language::STATE_LOCKED, Language::STATE_ALL.
   *
   * @return array
   *   An associative array of languages, keyed by the language code, ordered
   *   by weight ascending and name ascending.
   *   An associative array of languages, keyed by the language code.
   */
  public function getLanguages($flags = Language::STATE_CONFIGURABLE);

+1 −1
Changes for core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -296,7 +296,7 @@ public function getLanguages($flags = Language::STATE_CONFIGURABLE) {
      // Add locked languages, they will be filtered later if needed.
      $this->languages += $this->getDefaultLockedLanguages($weight);

      // Sort the language list by weight.
      // Sort the language list by weight then title.
      Language::sort($this->languages);
    }