Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
Adds enable module command.
Browse files Browse the repository at this point in the history
  • Loading branch information
guncha25 committed Mar 28, 2018
1 parent 0e71ac0 commit 631912b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Codeception/Module/DrupalBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,12 @@ public function deleteUser($username) {
}
}

/**
* @param $module_name
*/
public function enableModule($module_name) {
\Drupal::service('module_installer')->install([$module_name]);
}


}

0 comments on commit 631912b

Please sign in to comment.