Commit 8853240a authored by alexpott's avatar alexpott

Issue #2300853 by joshi.rohit100: Remove language() method from bootstrap.inc as it is deprecated.

parent 5ba4e635
......@@ -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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment