function PreprocessHooks::preprocessInstallPage

Same name and namespace in other branches
  1. 11.x core/themes/default_admin/src/Hook/PreprocessHooks.php \Drupal\default_admin\Hook\PreprocessHooks::preprocessInstallPage()

Implements hook_preprocess_install_page().

Attributes

#[Hook('preprocess_install_page')]

File

core/themes/default_admin/src/Hook/PreprocessHooks.php, line 718

Class

PreprocessHooks
Provides preprocess implementations.

Namespace

Drupal\default_admin\Hook

Code

public function preprocessInstallPage(array &$variables) : void {
  // Admin has custom styling for the install page.
  $variables['#attached']['library'][] = 'default_admin/install-page';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.