function drush_theme_enable

8.0.x environment_7.inc drush_theme_enable($themes)
8.0.x environment_6.inc drush_theme_enable($themes)
8.0.x environment.inc drush_theme_enable($themes)
6.x environment_6.inc drush_theme_enable($themes)
6.x environment.inc drush_theme_enable($themes)
6.x environment_7.inc drush_theme_enable($themes)
7.x environment_7.inc drush_theme_enable($themes)
7.x environment_6.inc drush_theme_enable($themes)
7.x environment.inc drush_theme_enable($themes)
3.x environment_7.inc drush_theme_enable($themes)
3.x environment_6.inc drush_theme_enable($themes)
3.x environment_5.inc drush_theme_enable($themes)
4.x environment_6.inc drush_theme_enable($themes)
4.x environment_5.inc drush_theme_enable($themes)
4.x environment.inc drush_theme_enable($themes)
5.x environment_6.inc drush_theme_enable($themes)
5.x environment.inc drush_theme_enable($themes)
master environment_7.inc drush_theme_enable($themes)
master environment.inc drush_theme_enable($themes)

Enable a list of themes.

Parameters

$themes: Array of theme names.

1 call to drush_theme_enable()
drush_pm_enable in commands/pm/pm.drush.inc
Command callback. Enable one or more extensions from downloaded projects. Note that the modules and themes to be enabled were evaluated during the pm-enable validate hook, above.

File

commands/core/drupal/environment.inc, line 278
Specific functions for a drupal 8+ environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal Drush is called from.

Code

function drush_theme_enable($themes) {
  \Drupal::service('theme_handler')->install($themes);
}