diff --git a/core/modules/user/user.pages.inc b/core/modules/user/user.pages.inc index 84a4d6e..9482d33 100644 --- a/core/modules/user/user.pages.inc +++ b/core/modules/user/user.pages.inc @@ -5,7 +5,6 @@ * User page callback file for the user module. */ -use Drupal\Core\Template\Attribute; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RedirectResponse; @@ -201,7 +200,7 @@ function template_preprocess_user(&$variables) { field_attach_preprocess($account, $variables['elements'], $variables); // Set up attributes. - $variables['attributes'] = new Attribute(array('class' => array('profile'))); + $variables['attributes'] = array('class' => array('profile')); } /**