function PreprocessHooks::preprocessMaintenancePage

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

Implements hook_preprocess_maintenance_page().

Attributes

#[Hook('preprocess_maintenance_page')]

File

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

Class

PreprocessHooks
Provides preprocess implementations.

Namespace

Drupal\default_admin\Hook

Code

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

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