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 DisplayPluginBase.php of the views module should be fixed with $request properly injected
core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php:
global $user;
Comment | File | Size | Author |
---|---|---|---|
#5 | 2062227-5.patch | 2.6 KB | alphawebgroup |
#3 | 2062227-3.patch | 2.6 KB | alphawebgroup |
#1 | vdc-displaypluginbase-2062227-1.patch | 2.6 KB | alphawebgroup |
Comments
Comment #1
alphawebgroupComment #3
alphawebgroupComment #4
dawehnerWe should always use the curent_user service :(
Comment #5
alphawebgroupComment #7
alphawebgroup