Comments

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Fixed.
entity_get_form is very interesting thing. How does it behave with DIC?

h3rj4n’s picture

Status: Needs review » Reviewed & tested by the community

Testbot doesn't fail, I don't find anything, so good to go: RTBC!

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/user/lib/Drupal/user/AccountFormController.php
@@ -20,7 +20,7 @@
-    global $user;
+    $user = \Drupal::currentUser();

Should be done using $this->currentUser(); form the FormBase class which AccountFormController inherits from.

m1r1k’s picture

Status: Needs work » Needs review
StatusFileSize
new580 bytes

New patch

linl’s picture

Assigned: » Unassigned
Status: Needs review » Reviewed & tested by the community

Patch still applies, looks good. RTBC.

alexpott’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Committed #2062183: Remove calls to deprecated global $user in core/modules/user/lib/Drupal/user/AccountFormController.php so this is a duplicate... and added likin to the commit message on that issue.