Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
ERFormatterBase standardizes code and behavior for loading referenced entities to display (access check, translation handling...)
TaxonomyFormatterBase has its own duplicate-but-different implementation. We should re-base it on EntityReferenceFormatterBase
+ it still has weird/old side behaviors like modifying the îtems in the entity being viewed, which is an antipattern. Thus, filing as a bug.
Comments
Comment #1
yched CreditAttribution: yched commentedWe'll need to decide if we do that or wait for #2433513: [PP-1] TaxonomyFormatterBase should extend EntityReferenceFormatterBase :-)
Comment #2
jibranI'd suggest we should wait for #1847596: Remove Taxonomy term reference field in favor of Entity reference.
Comment #3
yched CreditAttribution: yched commentedAt any rate, this is postponed on #2405469: FileFormatterBase should extend EntityReferenceFormatterBase
Comment #4
Wim Leers#2405469: FileFormatterBase should extend EntityReferenceFormatterBase is in, so unpostponing… but I think this is now actually still postponed on #1847596: Remove Taxonomy term reference field in favor of Entity reference?
Comment #5
Wim LeersAnd this would greatly simplify #2099137: Entity/field access and node grants not taken into account with core cache contexts.
Comment #6
Wim LeersThis is actually postponed on #1847596: Remove Taxonomy term reference field in favor of Entity reference, which is postponed on two independent chains of issues:
Comment #7
Wim LeersComment #8
Wim Leers#2373491: Categorize field type plugins is in.
Comment #9
Wim Leers#2446613: Fix MigrateVocabularyFieldTest was closed as a duplicate. So now down again.
#6 referred to #2099137: Entity/field access and node grants not taken into account with core cache contexts, not #1847596: Remove Taxonomy term reference field in favor of Entity reference. Fixed that.
Comment #10
Wim Leers#2446511: Add a "preconfigured field options" concept in Field UI landed.
Now only blocked on #1847596: Remove Taxonomy term reference field in favor of Entity reference.
Comment #11
amateescu CreditAttribution: amateescu commentedActually, it seems like this should be closed as a duplicate when that lands, no? :)
Comment #12
Wim LeersI was actually going to ask you exactly that. I didn't realize the other patch included the formatter changes. I guess the formatter changes must happen in that issue, right?
Comment #13
amateescu CreditAttribution: amateescu commentedThere are no changes needed AFAIS, that issue simply removes TaxonomyFormatterBase in favor of EntityReferenceFormatterBase.
Comment #14
Wim LeersOkay, marking this is a duplicate :)