Closed (fixed)
Project:
Views Reference Field
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Apr 2026 at 12:40 UTC
Updated:
28 Apr 2026 at 14:45 UTC
Jump to comment: Most recent
Comments
Comment #2
sapnil_biswas commentedWould like to give it a try
Comment #4
sapnil_biswas commentedComment #5
anybodyNice work @sapnil_biswas - I left some final comments. This is very close to what I expected.
Comment #6
sapnil_biswas commentedThank you Sir @anybody for your feedbacks and appreciation. I will get the necessary fixes done and mark it for review once its all resolved
Comment #7
sapnil_biswas commentedComment #8
anybodyNice work @sapnil_biswas! I think just the token part might need to get improved a bit. Did you find any existing implementation in other contrib modules or core solving this?
The other parts seem perfectly well already, thank you! Token isn't that easy here indeed.
Comment #9
scott_euser commentedThanks both! While you're at it, two comments from me:
Thanks!
Comment #10
sapnil_biswas commentedI took out the extra token browser support and the test that was only for the description. Instead, I focused on adding a short description to the arguments field and used the existing Views UI translation for the contextual filter syntax.
Please let me know if you have a preferred direction for any further changes, as I would like to make sure that the scope stays in line with your expectations.
Comment #11
anybodyGood point! Indeed the (helpful!) token browser addition should go into a separate issue. Your code was not bad, would you like to open an issue for that this the code and a test?
I'll finally review this one, but I think it's good.
Comment #12
anybodyJust compared the texts to core and I think it's perfect.
The first one is a 1:1 match: https://git.drupalcode.org/project/drupal/-/blob/main/core/modules/views...
The second one can't be used in this context, but has been aligned well: https://git.drupalcode.org/project/drupal/-/blob/main/core/modules/views...
So in this case concatenating the translation strings makes sense to reuse the same string from core where possible (IMHO).
Great work @sapnil_biswas!
@scott_euser if you're also fine with the improvements, this is good to go!
Comment #13
scott_euser commentedThanks! The only thing I am uncertain of is how this relates to #3558104: Add Contextual Filters Description on Arguments Field - is there anything in there that this is missing? If so, can we combine that into here (and I'll credit anyone who contributed there then)
Comment #14
anybody@scott_euser I think the text and general description here is much better and uses the core texts.
The other one then on top ads information about the contextual filters.
If I had to make the choice, I'd merge this one now and then rework the other one on top, especially because I think the other one is complex enough to need tests and we need to be careful about security there in the output. So I think the other one still NW.
But of course you decide.
Comment #16
scott_euser commentedSounds good, thank you!
Comment #18
anybodyThank YOU @scott_euser!