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.
derived from #2061921: Remove calls to deprecated global $user in views module
Part of #2047951: [META] Remove calls to deprecated global $user and $GLOBALS['user']
All places in views plugin ViewExecutable.php of the views module should be fixed with $request properly injected
core/modules/views/lib/Drupal/views/ViewExecutable.php:
$account = $GLOBALS['user'];
See change notice https://drupal.org/node/2032447
Comment | File | Size | Author |
---|---|---|---|
#3 | 2062421-3.patch | 1.08 KB | alphawebgroup |
#1 | 2062421-1.patch | 567 bytes | alphawebgroup |
Comments
Comment #1
alphawebgroupComment #2
dawehnerWe should always use the curent_user service :(
Comment #3
alphawebgroupalso, some comments were fixed
Comment #5
alphawebgroupComment #5.0
alphawebgroupUpdated issue summary.