The current user views default argument should use dependency injection

Created on 12 March 2019, almost 6 years ago
Updated 4 February 2023, almost 2 years ago

Problem/Motivation

User ID from logged in user default argument for views contextual filter, right now is getting from \Drupal::curentUser(); global class instead of dependency injection to get AccountProxy object of current user.

Proposed resolution

Add dependency injection to the Drupal\user\Plugin\views\argument_default\CurrentUser class
Also, fix phpDoc.

📌 Task
Status

RTBC

Version

9.5

Component
User module 

Last updated about 11 hours ago

Created by

🇵🇱Poland lamp5 Rzeszow

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024