Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
the implementation removes all predefined attributes like "prefix,lng,ltr etc"
the function toolbar_anti_flicker preprocess_html should change from:
function toolbar_anti_flicker_preprocess_html(&$variables) {
if (!\Drupal::currentUser()->hasPermission('access toolbar')) {
return;
}
$attributes = array();
$attributes['class'] = 'toolbar-no-flickering';
$variables['html_attributes']['class'] = new Attribute($attributes);
}
to:
function toolbar_anti_flicker_preprocess_html(&$variables) {
if (!\Drupal::currentUser()->hasPermission('access toolbar')) {
return;
}
$variables['html_attributes']->addClass('toolbar-no-flickering');
}
Comments
Comment #3
droplet CreditAttribution: droplet commentedFixed! Thanks!