function ClaroHooks::preprocessMaintenancePage

Same name and namespace in other branches
  1. main core/themes/claro/src/Hook/ClaroHooks.php \Drupal\claro\Hook\ClaroHooks::preprocessMaintenancePage()

Implements hook_preprocess_maintenance_page().

Attributes

#[Hook('preprocess_maintenance_page')]

File

core/themes/claro/src/Hook/ClaroHooks.php, line 325

Class

ClaroHooks
Hook implementations for claro.

Namespace

Drupal\claro\Hook

Code

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

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