Issue #2010380 by alexpott, TR, tstoeckler, MerryHamster, sanjayk, andypost,...
Issue #2010380 by alexpott, TR, tstoeckler, MerryHamster, sanjayk, andypost, chx, Pancho, daffie: Deprecate module_load_install() and replace it with ModuleHandler::loadInstall
(cherry picked from commit 9defd332)
* the replacement no longer allows including code from uninstalled modules.
*
* @see https://www.drupal.org/node/3220952
*/
functionmodule_load_install($module){
@trigger_error('module_load_install() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead, you should use \Drupal::moduleHandler()->loadInclude($module, \'install\'). Note, the replacement no longer allows including code from uninstalled modules. See https://www.drupal.org/project/drupal/issues/2010380',E_USER_DEPRECATED);