Skip to content
Snippets Groups Projects
Commit 8853240a authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 5ba4e635
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment