Implements hook_preprocess_HOOK() for HTML document templates.
function toolbar_preprocess_html(&$variables) : void { if (!\Drupal::currentUser()->hasPermission('access toolbar')) { return; } $variables['attributes']['class'][] = 'toolbar-loading'; }