diff --git a/core/lib/Drupal/Core/Form/FormStateInterface.php b/core/lib/Drupal/Core/Form/FormStateInterface.php index 2d637d1c61..4459b439e5 100644 --- a/core/lib/Drupal/Core/Form/FormStateInterface.php +++ b/core/lib/Drupal/Core/Form/FormStateInterface.php @@ -67,7 +67,7 @@ public function setCompleteForm(array &$complete_form); * The filepath of the loaded include file, or FALSE if the include file was * not found or has been loaded already. * - * @see \Drupal::moduleHandler()->loadInclude() + * @see \Drupal\Core\Extension\ModuleHandlerInterface::loadInclude() */ public function loadInclude($module, $type, $name = NULL); diff --git a/core/modules/tracker/tests/src/Kernel/TrackerLegacyTest.php b/core/modules/tracker/tests/src/Kernel/TrackerLegacyTest.php index 238b380e7c..6e99bca28e 100644 --- a/core/modules/tracker/tests/src/Kernel/TrackerLegacyTest.php +++ b/core/modules/tracker/tests/src/Kernel/TrackerLegacyTest.php @@ -37,7 +37,7 @@ protected function setUp() { * @expectedDeprecation tracker_page is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\tracker\Controller\TrackerController::buildContent() instead. See https://www.drupal.org/node/3030645 */ public function testDeprecatedTrackerPage() { - module_load_include('inc', 'tracker', 'tracker.pages'); + \Drupal::moduleHandler()->loadInclude('tracker', 'inc', 'tracker.pages'); $this->assertNotEmpty(tracker_page()); }