You are here

function seven_preprocess_maintenance_page in Drupal 10

Same name and namespace in other branches
  1. 8 core/themes/seven/seven.theme \seven_preprocess_maintenance_page()
  2. 7 themes/seven/template.php \seven_preprocess_maintenance_page()
  3. 9 core/themes/seven/seven.theme \seven_preprocess_maintenance_page()

Implements hook_preprocess_maintenance_page().

File

core/themes/seven/seven.theme, line 146
Functions to support theming in the Seven theme.

Code

function seven_preprocess_maintenance_page(&$variables) {

  // Seven has custom styling for the maintenance page.
  $variables['#attached']['library'][] = 'seven/maintenance-page';
}