function ClaroHooks::preprocessMaintenancePage

Implements hook_preprocess_maintenance_page().

Attributes

#[Hook('preprocess_maintenance_page')]

File

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

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.