summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Extension/ModuleHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/Extension/ModuleHandler.php')
-rw-r--r--core/lib/Drupal/Core/Extension/ModuleHandler.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php
index eac7318..cb65449 100644
--- a/core/lib/Drupal/Core/Extension/ModuleHandler.php
+++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php
@@ -1068,4 +1068,11 @@ class ModuleHandler implements ModuleHandlerInterface {
return $dirs;
}
+ /**
+ * {@inheritdoc}
+ */
+ public function getName($module) {
+ $module_data = system_rebuild_module_data();
+ return $module_data[$module]->info['name'];
+ }
}