From 9faf605022684b5f3b4d89fbfceadbd03f750eb5 Mon Sep 17 00:00:00 2001 From: Yeni Atencio Date: Wed, 11 Dec 2024 09:44:25 +1100 Subject: [PATCH] test --- modules/tide_media/tide_media.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tide_media/tide_media.module b/modules/tide_media/tide_media.module index e85bd010..2fb8f9e3 100644 --- a/modules/tide_media/tide_media.module +++ b/modules/tide_media/tide_media.module @@ -476,7 +476,7 @@ function tide_media_preprocess_page(&$variables) { $roles = $current_user->getRoles(); if ($route_name === 'entity.user.edit_form' && in_array('secure_file_user', $roles)) { - $url = \Drupal\Core\Url::fromRoute('entity.user.canonical', ['user' => $current_user->id()]); + $url = Url::fromRoute('entity.user.canonical', ['user' => $current_user->id()]); $response = new RedirectResponse($url->toString()); $response->send(); exit();