Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Mar 2015 at 10:51 UTC
Updated:
24 Mar 2015 at 12:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anushka-mp commentedComment #2
Anushka-mp commentedapproach 1. added the view builder as a handler to the ContentEntityType::
Comment #3
berdirRemember to also remove any occurence of "view_builder" = "Drupal\Core\Entity\EntityViewBuilder" from core.
Comment #4
Anushka-mp commentedview builder (EntityViewBuilder) removed from the User & File entities.
Comment #5
dawehnerThis is also kinda a blocker for views, isn't it?
Comment #6
olli commentedDoes this work for shortcut and menulinkcontent which currently dont have a view_builder?
Comment #7
berdirUpdated issue summary a bit.
@dawehner: It's not a blocker, just a DX improvement, you can always specify it yourself, but you have to figure that out and find the right class and so on. And apparently our code relies on its existence.
Comment #8
dawehner@berdir
Well, the point is the following: Let's assume you have an entity type with some base fields, but without any kind of view builder.
These views should be available in views, but well, the following code in
FIeldItemListwill simply fail:as long there is no view builder defined.
Comment #9
dawehnerI think this is ready to go.
Comment #10
dawehnerA beta eval would be nicel
Comment #11
Anushka-mp commentedComment #12
Anushka-mp commentedComment #13
Anushka-mp commentedComment #14
alexpottIt seems sensible to provide a default if we rely on it. I agree that this reduces fragility and improves DX with zero disruption. Committed 6fe3616 and pushed to 8.0.x. Thanks!
Thank you for adding the beta evaluation to the issue summary.