Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Part of #2047951: [META] Remove calls to deprecated global $user and $GLOBALS['user']
function form_test_two_instances() {
global $user;
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal8.system-module.2062363-2.patch | 654 bytes | sergeypavlenko |
#1 | drupal-2062363-1.patch | 679 bytes | sergeypavlenko |
Comments
Comment #1
sergeypavlenko CreditAttribution: sergeypavlenko commentedFix.
Comment #2
sergeypavlenko CreditAttribution: sergeypavlenko commentedIssue #2062151: Create a current user service to ensure that current account is always available. Fix.
Comment #3
andypostgreat
Comment #4
webchickCommitted and pushed to 8.x. Thanks!