Skip to content

Commit

Permalink
module_load_include is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
phdhiren committed Jan 6, 2023
1 parent a23cac1 commit b4a53b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ protected function checkAddCreditRequirements() {
],
]);

module_load_install('apigee_m10n_add_credit');
$module_handler = \Drupal::moduleHandler();
$module_handler->loadInclude($module, 'apigee_m10n_add_credit');
$requirements = apigee_m10n_add_credit_requirements('runtime');
return $requirements['add_credit_products'] ?? NULL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public function testStatusReport() {
*/
protected function checkAddCreditRequirements() {

module_load_install('apigee_m10n_add_credit');
$module_handler = \Drupal::moduleHandler();
$module_handler->loadInclude($module, 'apigee_m10n_add_credit');

$requirements = apigee_m10n_add_credit_requirements('runtime');
return $requirements['add_credit_products'] ?? NULL;
Expand Down

0 comments on commit b4a53b5

Please sign in to comment.