customize

You are here

Tim Millwood: Programmatically install Drupal 8 module

Programmatically install Drupal 8 module
timmillwood
Tue, 16/05/2017 - 07:41

There are times, often in tests or upgrade paths, where we want to programmatically install a module. Here's how:

\Drupal::service('module_installer')->install(['workspace']);


Add new comment

Source: 
https://www.millwoodonline.co.uk/quicktips/programmatically-install-drupal-module