function thunder_preprocess_html in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 thunder.profile \thunder_preprocess_html()
- 6.2.x thunder.profile \thunder_preprocess_html()
- 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';
}
}