Skip to content
Snippets Groups Projects
Commit 36adc62b authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

Issue #2163625 by StephaneQ: Fix incorrect method reference in comment in ModuleHandler

parent d9227efb
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -426,7 +426,7 @@ protected function getImplementationInfo($hook) { ...@@ -426,7 +426,7 @@ protected function getImplementationInfo($hook) {
$hook_info = $this->getHookInfo(); $hook_info = $this->getHookInfo();
foreach ($this->moduleList as $module => $filename) { foreach ($this->moduleList as $module => $filename) {
$include_file = isset($hook_info[$hook]['group']) && $this->loadInclude($module, 'inc', $module . '.' . $hook_info[$hook]['group']); $include_file = isset($hook_info[$hook]['group']) && $this->loadInclude($module, 'inc', $module . '.' . $hook_info[$hook]['group']);
// Since $this->hookImplements() may needlessly try to load the include // Since $this->implementsHook() may needlessly try to load the include
// file again, function_exists() is used directly here. // file again, function_exists() is used directly here.
if (function_exists($module . '_' . $hook)) { if (function_exists($module . '_' . $hook)) {
$this->implementations[$hook][$module] = $include_file ? $hook_info[$hook]['group'] : FALSE; $this->implementations[$hook][$module] = $include_file ? $hook_info[$hook]['group'] : FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment