You are here

function thunder_preprocess_html in Thunder 6.1.x

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

Implements hook_preprocess_html().

File

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

Code

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