Issue #2300831 by joshi.rohit100: Remove module_exists() as it is deprecated.
parent
1eadf82a5e
commit
17e7dbac24
|
@ -1161,18 +1161,6 @@ function drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL) {
|
|||
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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue