Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jul 2013 at 03:39 UTC
Updated:
29 Jul 2014 at 22:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andypostIt would really helpful to have a helper to list modes per entity type
Comment #2
yched commentedtagging
Comment #3
swentel commentedThis should do it. Will look for tests later, because it seems the entity display tests are actually not working properly.
Comment #4
swentel commentedSome additional tests first for entity display because they were passing without knowing. I've added an explicit check to see whether the component exists or not. Interdiff is between fail and pass.
Comment #5
swentel commentedAnd now with form display tests too. Note that I've added a form mode alter in entity_test module so I could test multiple form modes.
Comment #6
yched commentedThanks, looks correct. Just nitpicks on visual review:
Minor: plural / singular mismatch (same in the other class)
Minor: missing empty line after last method.
Comment #7
swentel commentedCleaned up.
Comment #9
swentel commentedAh, entity storage of course.
Comment #10
yched commentedThanks!
RTBC if green.
Comment #11
alexpottCommitted 477cb6e and pushed to 8.x. Thanks!