From 8853240affef5742b4d3afb5ac988aac6f94d3df Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Sun, 13 Jul 2014 10:00:13 +0100 Subject: [PATCH] Issue #2300853 by joshi.rohit100: Remove language() method from bootstrap.inc as it is deprecated. --- core/includes/bootstrap.inc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 7f8b3da843ae..81c818635d18 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1275,21 +1275,6 @@ function drupal_installation_attempted() { return isset($GLOBALS['install_state']) && empty($GLOBALS['install_state']['installation_finished']); } -/** - * Returns the language object for a given language type. - * - * @see \Drupal\Core\Language\LanguageManager - * - * @param string $type - * The type of language object needed, e.g. Language::TYPE_INTERFACE. - * - * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0. - * Use \Drupal::languageManager()->getCurrentLanguage(). - */ -function language($type) { - return \Drupal::languageManager()->getCurrentLanguage($type); -} - /** * Returns a list of languages set up on the site. * -- GitLab