_drupal_maintenance_theme
function _drupal_maintenance_theme
_drupal_maintenance_theme()
Sets up the theming system for maintenance page.
Used for site installs, updates and when the site is in maintenance mode. It also applies when the database is unavailable or bootstrap was not complete. Seven is always used for the initial install and update operations. In other cases, Bartik is used, but this can be overridden by setting a "maintenance_theme" key in the $settings variable in settings.php.
File
- core/includes/theme.maintenance.inc, line 20
- Theming for maintenance pages.
Code
function _drupal_maintenance_theme() { // If the theme is already set, assume the others are set too, and do nothing. if (\Drupal::theme()->hasActiveTheme()) { return; } require_once __D