Change record status: 
Project: 
Introduced in branch: 
9.4.x
Introduced in version: 
9.4.0
Description: 

The function module_load_include($type, $module, $name = NULL) is deprecated. Use \Drupal::moduleHandler()->loadInclude($module, $type, $name = NULL); instead.

Notes:

  • The ModuleHandler::loadInclude() parameters are not in the same order. The first 2 parameters reversed when compared to the module_load_include() function.
  • ModuleHandler::loadInclude() does not support including code from uninstalled extensions.
Impacts: 
Module developers