This issue is spun off from #2831274-390: Bring Media entity module to core as Media module. Specifically, this point of review:
Remove full view mode and "tricky" template title handling. There are many valid usecases for this, but it doesn't necessarily need to be in core.
We (the Media team) tried to do this over in #2877346: Media Entity finalish review (disregard if you're not part of the Media Initiative; working around long issue node) but failed because core tests (not just Media tests) broke. @Wim Leers quickly identified the reason in #2877346-25: Media Entity finalish review (disregard if you're not part of the Media Initiative; working around long issue node). Ultimately, we decided to just continue doing what Taxonomy is doing for term entities, which is send a boolean variable into the term template (or use similar logic in the template itself) to indicate whether or not we are in a "full-page" view of the term. Node does something similar, as does Media. Three entity types in core, all solving the same weird problem in essentially the same way. Hmmm!
This problem should be solved generically in core.
Remaining Tasks
- Let's open the ol' bike shed and figure out the best way to solve this.
- Then let's do that in patch form.
- And re-open the bike shed until the patch resembles Perfection Itself.
- At which point we'll bat our eyes expectantly at the committers...
- ...which will inspire them to land the patch!
Comments
Comment #2
seanbAdded back the full view mode in the main media patch. Discussed this with phenaproxima on IRC. The main reasons:
\Drupal\Core\Entity\EntityViewBuilder::view()uses 'full' view mode as a default. We could try to work around that, but that doesn't seem to make sense.Comment #3
phenaproximaRe-titling and re-summarizing.
Comment #4
phenaproximaComment #6
phenaproxima#2831274: Bring Media entity module to core as Media module landed aeons ago, so it's time to re-open this.
Comment #9
jonathanshawThe node currently does this endangers kittens. There's a lot of tricky BC issues in trying to fix it.
Comment #10
adamps commentedAs far as I can see the code this issue refers to (see below) was removed in #2930788: Do not show name by default in media displays
The code remains for node and taxonomy. However it is code that only applies if the title is not present in Manage display - and so would inevitably be removed if core moves to use manage display.
Hence I propose that this issue is outdated. Of course please reopen if you don't agree.