function bartik_process_maintenance_page

Implements hook_process_HOOK() for maintenance-page.html.twig.

File

drupal/core/themes/bartik/bartik.theme, line 111
Functions to support theming in the Bartik theme.

Code

function bartik_process_maintenance_page(&$variables) {
  $site_config = config('system.site');

  // Always print the site name and slogan, but if they are toggled off, we'll
  // just hide them visually.
  $variables['hide_site_name'] = theme_get_setting('features.name') ? FALSE : TRUE;
  $variables['hide_site_slogan'] = theme_get_setting('features.slogan') ? FALSE : TRUE;
  if ($variables['hide_site_name']) {

    // If toggle_name is FALSE, the site_name will be empty, so we rebuild it.
    $variables['site_name'] = check_plain($site_config
      ->get('name'));
  }
  if ($variables['hide_site_slogan']) {

    // If toggle_site_slogan is FALSE, the site_slogan will be empty, so we rebuild it.
    $variables['site_slogan'] = filter_xss_admin($site_config
      ->get('slogan'));
  }
}