You are here

function thunder_preprocess_html in Thunder 8.5

Same name and namespace in other branches
  1. 6.2.x thunder.profile \thunder_preprocess_html()
  2. 6.0.x thunder.profile \thunder_preprocess_html()
  3. 6.1.x thunder.profile \thunder_preprocess_html()

Implements hook_preprocess_html().

File

./thunder.profile, line 150
Enables modules and site configuration for a thunder site installation.

Code

function thunder_preprocess_html(&$variables) {
  if (\Drupal::currentUser()
    ->hasPermission('access toolbar')) {
    $variables['attributes']['class'][] = 'toolbar-icon-thunder';
  }
}