From 8910e6d62ac2f2fc357deb00eebfe8e0b781e2d8 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sun, 17 Dec 2023 21:37:10 +0100 Subject: [PATCH] update docs --- docs/rules_overview.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/rules_overview.md b/docs/rules_overview.md index 251bb3b1..f6580895 100644 --- a/docs/rules_overview.md +++ b/docs/rules_overview.md @@ -715,15 +715,22 @@ Fixes deprecated `AssertLegacyTrait::getRawContent()` calls
-### ModuleLoadInstallRector +### ModuleLoadRector Fixes deprecated `module_load_install()` calls -- class: [`DrupalRector\Drupal9\Rector\Deprecation\ModuleLoadInstallRector`](../src/Drupal9/Rector/Deprecation/ModuleLoadInstallRector.php) +- class: [`DrupalRector\Drupal9\Rector\Deprecation\ModuleLoadRector`](../src/Drupal9/Rector/Deprecation/ModuleLoadRector.php) ```diff -module_load_install('example'); -+\Drupal\Core\Extension\ModuleHandler::loadInclude('example', 'install'); ++\Drupal::moduleHandler()->loadInclude('example', 'install'); + $type = 'install'; + $module = 'example'; + $name = 'name'; +-module_load_include($type, $module, $name); +-module_load_include($type, $module); ++\Drupal::moduleHandler()->loadInclude($module, $type, $name); ++\Drupal::moduleHandler()->loadInclude($module, $type); ```