Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By MerryHamster on
Change record status:
Published (View all published change records)
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 themodule_load_include()
function. ModuleHandler::loadInclude()
does not support including code from uninstalled extensions.
Impacts:
Module developers