Closed (fixed)
Project:
Display Suite
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jan 2026 at 11:49 UTC
Updated:
5 Feb 2026 at 08:41 UTC
Jump to comment: Most recent
Comments
Comment #2
dpiTagged with 5.x but I'd appreciate if this was also applied to 3.x.
Comment #3
dpiComment #4
dpiComment #5
swentel commentedThe 5.x brach is obsolete, can be fixed in 8.x-3.x
Comment #8
ben280398 commentedIdentified the files needing changes per the issue description:
src/Plugin/DsField/TokenBase.php
src/Plugin/DsField/Node/NodeSubmittedBy.php
Changes made:
Replaced concrete Renderer class with RendererInterface in both files
Merge Request is linked here for ease of tracking:
https://git.drupalcode.org/project/ds/-/merge_requests/60
Comment #9
dpiChanges look right.
Comment #10
ben280398 commentedThanks Dpi, Could you merge it in please?
Comment #11
swentel commentedThere's also still a call using \Drupal::service('renderer')->render() in DynamicTwigField - maybe we can replace that as Tokenbase has the renderer property. DsExtrasController also has one, let's change that too while we're at it. The one in DsRegionBlock is ok, since the plugin is deprecated anyway.
@dpi : the current patch fixes your WSOD on the manage display screen already? (I haven't added a decorator yet, but if it's fine for you, I'll commit when the two above are done as well.
Comment #12
dpiyeah ive tried the MR out as a patch, I noted the one line I needed to change on my unpatched version was also changed here.
As far as refactoring for dependency injection, I intentionally left that out of the issue summary as maintainers dont have consistent views on this. For example in my projects, I would forbid it.
Leaving as NW for DI, but I personally consider this RTBC.
Comment #13
swentel commentedRight, makes sense, I'll merge it in, we can always create a follow when needed.
Comment #14
swentel commentedMerged and tagged a new release
Comment #16
swentel commented