Skip to content

Commit

Permalink
Pull request #8.
Browse files Browse the repository at this point in the history
Merge branch 'marcingy-master'

Signed-off-by: Jonathan Hedstrom <[email protected]>
  • Loading branch information
jhedstrom committed Feb 13, 2015
1 parent 377912e commit 37fb2c7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Drupal/Driver/Cores/CoreInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public function getRandom();
*/
public function bootstrap();

/**
* Get module list.
*/
public function getModuleList();

/**
* Clear caches.
*/
Expand Down
7 changes: 7 additions & 0 deletions src/Drupal/Driver/Cores/Drupal7.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,4 +464,11 @@ protected function getAllPermissions() {
return $permissions;
}

/**
* {@inheritDoc}
*/
public function getModuleList() {
return module_list();
}

}
7 changes: 7 additions & 0 deletions src/Drupal/Driver/Cores/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,11 @@ public function termDelete(\stdClass $term) {
$term->delete();
}

/**
* {@inheritDoc}
*/
public function getModuleList() {
return \Drupal::moduleHandler()->getModuleList();
}

}
2 changes: 1 addition & 1 deletion src/Drupal/Driver/DrupalDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function getSubDriverPaths() {
}

// Get enabled modules.
$modules = \module_list();
$modules = $this->getCore()->getModuleList();
$paths = array();
foreach ($modules as $module) {
$paths[] = $this->drupalRoot . DIRECTORY_SEPARATOR . \drupal_get_path('module', $module);
Expand Down

0 comments on commit 37fb2c7

Please sign in to comment.