Same name and namespace in other branches
  1. 8.9.x core/includes/theme.inc \template_preprocess_install_page()
  2. 9 core/includes/theme.inc \template_preprocess_install_page()

Prepares variables for install page templates.

Default template: install-page.html.twig.

Parameters

array $variables: An associative array containing:

  • content - An array of page content.

See also

template_preprocess_maintenance_page()

File

core/includes/theme.inc, line 1507
The theme system, which controls the output of Drupal.

Code

function template_preprocess_install_page(&$variables) {
  $installer_active_task = NULL;
  if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE === 'install' && InstallerKernel::installationAttempted()) {
    $installer_active_task = $GLOBALS['install_state']['active_task'];
  }
  template_preprocess_maintenance_page($variables);

  // Override the site name that is displayed on the page, since Drupal is
  // still in the process of being installed.
  $distribution_name = drupal_install_profile_distribution_name();
  $variables['site_name'] = $distribution_name;
  $variables['site_version'] = $installer_active_task ? drupal_install_profile_distribution_version() : '';
}