function install_profile_themes
install_profile_themes(&$install_state)
Installs themes.
This does not use a batch, since installing themes is faster than modules and because an installation profile typically installs 1-3 themes only (default theme, base theme, admin theme).
Parameters
$install_state: An array of information about the current installation state.
File
- core/includes/install.core.inc, line 1536
- API functions for installing Drupal.
Code
function install_profile_themes(&$install_state) { // Install the themes specified by the installation profile. $themes = $install_state['profile_info']['themes']; \Drupal::service('theme_handler')->install($themes); // Ensure that the install profile's theme is used. // @see _drupal_maintenance_theme() \Drupal::service('theme.manager')->resetActiveTheme(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!install.core.inc/function/install_profile_themes/8.1.x