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

Issue #2301577 by ParisLiakos, joshi.rohit100: Remove drupal_alter() as it is deprecated.

parent 8853240a
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
......@@ -1149,18 +1149,6 @@ function module_invoke($module, $hook) {
return \Drupal::moduleHandler()->invoke($module, $hook, $args);
}
/**
* Passes alterable variables to specific hook_TYPE_alter() implementations.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::moduleHandler()->alter($hook).
*
* @see \Drupal\Core\Extension\ModuleHandler::alter()
*/
function drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL) {
return \Drupal::moduleHandler()->alter($type, $data, $context1, $context2);
}
/**
* Returns the test prefix if this is an internal request from SimpleTest.
*
......@@ -1678,4 +1666,3 @@ function _drupal_shutdown_function() {
error_log($exception);
}
}
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