diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index fcf4d44..b8ef4f0 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -982,24 +982,6 @@ function language_list($flags = LanguageInterface::STATE_CONFIGURABLE) { } /** - * Loads a language object from the database. - * - * @param string $langcode - * The language code. - * - * @return \Drupal\core\Language\LanguageInterface|null - * A fully-populated language object or NULL. - * - * @see \Drupal\Core\Language\LanguageManager::getLanguage() - * - * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0. - * Use \Drupal::languageManager()->getLanguage(). - */ -function language_load($langcode) { - return \Drupal::languageManager()->getLanguage($langcode); -} - -/** * Returns the default language used on the site. * * @return \Drupal\Core\Language\LanguageInterface diff --git a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php index 59c1469..0b3ead9 100644 --- a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +++ b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php @@ -446,10 +446,6 @@ public function testGetLangcode() { catch (\RuntimeException $e) {} } - // @todo Test ConfigNamesMapper::getLanguageWithFallback() once - // https://drupal.org/node/1862202 lands in core, because then we can - // remove the direct language_load() call. - /** * Tests ConfigNamesMapper::getConfigData(). */