Skip to content
Snippets Groups Projects
Commit 17e7dbac authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2300831 by joshi.rohit100: Remove module_exists() as it is deprecated.

parent 1eadf82a
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
...@@ -1161,18 +1161,6 @@ function drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL) { ...@@ -1161,18 +1161,6 @@ function drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL) {
return \Drupal::moduleHandler()->alter($type, $data, $context1, $context2); return \Drupal::moduleHandler()->alter($type, $data, $context1, $context2);
} }
/**
* Determines whether a given module exists.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::moduleHandler()->moduleExists($module).
*
* @see \Drupal\Core\Extension\ModuleHandler::moduleExists()
*/
function module_exists($module) {
return \Drupal::moduleHandler()->moduleExists($module);
}
/** /**
* Returns the test prefix if this is an internal request from SimpleTest. * Returns the test prefix if this is an internal request from SimpleTest.
* *
......
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