Mercurial > hg > cmmr2012-drupal-site
diff core/modules/toolbar/toolbar.module @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/toolbar/toolbar.module Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/toolbar/toolbar.module Thu May 09 15:34:47 2019 +0100 @@ -283,9 +283,10 @@ if (!\Drupal::currentUser()->hasPermission('access toolbar')) { return; } - - $variables['attributes'] = new Attribute($variables['attributes']); - $variables['attributes']->addClass(['toolbar-tray-open', 'toolbar-horizontal', 'toolbar-fixed', 'toolbar-loading']); + $variables['attributes']['class'][] = 'toolbar-tray-open'; + $variables['attributes']['class'][] = 'toolbar-horizontal'; + $variables['attributes']['class'][] = 'toolbar-fixed'; + $variables['attributes']['class'][] = 'toolbar-loading'; } /**