function 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\HookCode
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.