diff -u b/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php --- b/core/lib/Drupal/Core/Extension/ModuleHandler.php +++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php @@ -710,8 +710,8 @@ * {@inheritdoc} */ public function getName($module) { - $module_data = system_rebuild_module_data(); - return isset($module_data[$module]->info['name']) ? $module_data[$module]->info['name'] : $module; + $info = system_get_info('module', $module); + return isset($info['name']) ? $info['name'] : $module; } } diff -u b/core/modules/help/src/Controller/HelpController.php b/core/modules/help/src/Controller/HelpController.php --- b/core/modules/help/src/Controller/HelpController.php +++ b/core/modules/help/src/Controller/HelpController.php @@ -66,12 +66,10 @@ * A string containing the formatted list. */ protected function helpLinksAsList() { - $module_info = system_rebuild_module_data(); - $modules = array(); foreach ($this->moduleHandler()->getImplementations('help') as $module) { if ($this->moduleHandler()->invoke($module, 'help', array("help.page.$module", $this->routeMatch))) { - $modules[$module] = $module_info[$module]->info['name']; + $modules[$module] = $this->moduleHandler->getName($module); } } asort($modules); @@ -118,11 +116,12 @@ public function helpPage($name) { $build = array(); if ($this->moduleHandler()->implementsHook($name, 'help')) { - $build['#title'] = SafeMarkup::checkPlain($info[$name]['name']); + $module_name = $this->moduleHandler()->getName($name); + $build['#title'] = SafeMarkup::checkPlain($module_name); $temp = $this->moduleHandler()->invoke($name, 'help', array("help.page.$name", $this->routeMatch)); if (empty($temp)) { - $build['top']['#markup'] = $this->t('No help is available for module %module.', array('%module' => $this->moduleHandler()->getName($name))); + $build['top']['#markup'] = $this->t('No help is available for module %module.', array('%module' => $module_name)); } else { $build['top']['#markup'] = $temp; @@ -130,7 +129,7 @@ // Only print list of administration pages if the module in question has // any such pages associated to it. - $admin_tasks = system_get_module_admin_tasks($name, $info[$name]); + $admin_tasks = system_get_module_admin_tasks($name, system_get_info('module', $name)); if (!empty($admin_tasks)) { $links = array(); foreach ($admin_tasks as $task) { @@ -141,7 +140,7 @@ $build['links']['#links'] = array( '#heading' => array( 'level' => 'h3', - 'text' => $this->t('@module administration pages', array('@module' => $info[$name]['name'])), + 'text' => $this->t('@module administration pages', array('@module' => $module_name)), ), '#links' => $links, );