summaryrefslogtreecommitdiffstats
path: root/core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php')
-rw-r--r--core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php b/core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php
index c5d0dde..a6c4ea9 100644
--- a/core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php
+++ b/core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php
@@ -58,12 +58,11 @@ class Layout implements DerivativeInterface {
$available_layout_providers = array();
// Add all modules as possible layout providers.
- // @todo Inject the module handler.
- foreach (drupal_container()->get('module_handler')->getModuleList() as $module => $filename) {
+ foreach (module_list() as $module) {
$available_layout_providers[$module] = array(
'type' => 'module',
'provider' => $module,
- 'dir' => dirname($filename),
+ 'dir' => drupal_get_path('module', $module),
);
}