When showing user specific blocks on profile pages It would be helpful to be able to use the uid from the profile in the route as a default contextual filter for views

here is a patch that does it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

loze created an issue. See original summary.

loze’s picture

Status: Active » Needs review
loze’s picture

FileSize
2.42 KB

Patch was wrong, this one works.

mglaman’s picture

Status: Needs review » Reviewed & tested by the community

Looks straight forward, as a copy and paste of \Drupal\node\Plugin\views\argument_default\Node.

  • mglaman committed 31efd57 on 8.x-1.x authored by loze
    Issue #3162693 by loze: Provide a views default argument for profile...
mglaman’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks! 🥳

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.