function PreprocessHooks::installPage

Same name and namespace in other branches
  1. main core/themes/admin/src/Hook/PreprocessHooks.php \Drupal\admin\Hook\PreprocessHooks::installPage()

Implements hook_preprocess_install_page().

Attributes

#[Hook('preprocess_install_page')]

File

core/themes/admin/src/Hook/PreprocessHooks.php, line 730

Class

PreprocessHooks
Provides preprocess implementations.

Namespace

Drupal\admin\Hook

Code

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

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