function PreprocessHooks::maintenancePage
Same name and namespace in other branches
- main core/themes/admin/src/Hook/PreprocessHooks.php \Drupal\admin\Hook\PreprocessHooks::maintenancePage()
Implements hook_preprocess_maintenance_page().
Attributes
#[Hook('preprocess_maintenance_page')]
File
-
core/
themes/ admin/ src/ Hook/ PreprocessHooks.php, line 855
Class
- PreprocessHooks
- Provides preprocess implementations.
Namespace
Drupal\admin\HookCode
public function maintenancePage(array &$variables) : void {
// Admin has custom styling for the maintenance page.
$variables['#attached']['library'][] = 'admin/maintenance-page';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.