Closed (outdated)
Project:
(Entity Reference) Field Formatters
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Oct 2016 at 15:37 UTC
Updated:
8 Jun 2026 at 10:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jibranWe have some similar issues in DER as well #2381993: Allow view mode or formatter to be selected per item in the widget and #2729463: List of view_modes is empty in dynamic_entity_reference_entity_view formatter but those are related to view mode.
Comment #3
dawehnerAssigning to myself to make it clear that I'm working on that issue, because, well, we need it.
@jibran
If we can make those formatters working for both ER, ERR and DER at least for myself I'd be happy to support it.
Comment #4
dawehnerHere is a patch with a test included
Comment #6
dawehnerHere is a patch which provides also a settings summary.
Comment #8
dawehner.
Comment #10
slashrsm commentedThis looks great and very useful!
Can we have something better for schema?
Would it make sense to use just the first item? I am not sure but I suspect that we might be able to get rid of a div in that case.
What will happen if
!isset($settings[$bundle_id])and we set this?I tried in Psy shell and got segmentation fault back into my face...
Comment missing for this function.
Could you use #parents?
Also use all 80 characters.
Should we use similar approach as in #2813913: Support Entity reference selection configuration without any target bundles?
Missing comment block.
In which case this happens? Maybe add a comment?
Comment #11
dawehnerThank you for the review @slashrsm!
Well, can't the entity reference contains multiple entities in the first place?
So the current solution is okay?
Maybe ^^, indeed this works much better.
Good catch
I did
Comment #12
slashrsm commentedAlmost there :).
That code hunk is always rendering a single entity. Doesn't this mean that we're adding an additional wrapper for each of them?
I don't think so. It is current solution that segfaulted on me when testing it.
Comment #13
dawehnerWell, right, but we still iterate over the referenced entities. Maybe I'm just not sure what exactly you are talking about :)
OH
Comment #14
anybody> 3 years old. This issue now needs a reroll against latest 1.x-dev. Otherwise please close as outdated.
Comment #15
anybodySwitched to 3.x!
@dawehner still interested to reroll this?
Comment #16
anybodyAnd could someone please prepare this as MR? Furthermore it needs tests.
Comment #17
anybody@dawehner & @slashrsm still interested to implement this?
If yes, please use a MR.
Comment #18
anybodyOk let's close this outdated then. If anyone needs it, I'd vote to put it into an optional submodule, so we don't blow up complexity for regular cases.