Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / views_ui / src / Form / BreakLockForm.php
index 94a626f2734e5e30f32dc617c9f0e109d102fa14..b73e618cc2d2fc5175c4229ba2ecbb1d9097c36c 100644 (file)
@@ -74,7 +74,7 @@ class BreakLockForm extends EntityConfirmFormBase {
       '#theme' => 'username',
       '#account' => $account,
     ];
-    return $this->t('By breaking this lock, any unsaved changes made by @user will be lost.', ['@user' => drupal_render($username)]);
+    return $this->t('By breaking this lock, any unsaved changes made by @user will be lost.', ['@user' => \Drupal::service('renderer')->render($username)]);
   }
 
   /**