Migrate view modes into entity.view_mode.*.*.yml
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2170033_4.patch | 6.62 KB | benjy |
| #2 | 2170033_2.patch | 4.63 KB | benjy |
Migrate view modes into entity.view_mode.*.*.yml
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2170033_4.patch | 6.62 KB | benjy |
| #2 | 2170033_2.patch | 4.63 KB | benjy |
Comments
Comment #1
benjy commentedOnce #2155801: Migrate D6 field formatter settings lands we should split the view mode source out into it's own source and add a unit test.
Comment #2
benjy commentedJust uploading this so I don't lose it.
It will fail until #2169999: Allow for entity updates during migrations get's in and it needs a unit test for the source.
Comment #3
chx commentedComment #4
benjy commentedThis may still needs some work over at #2166487: Refactor FieldInstancePerFormDisplay and FieldInstancePerViewMode to have a base class since we have a bit of duplication but for now here is a working simplified source for view modes and a unit test.
Comment #5
chx commentedBefore commit could you please turn
+ 'display_settings' => 'a:6:{into a
serialize(array(? And rerun the unit tests, they are fast. Yes this is usually not how the dump classes look but the dump classes ideally are created from a live D6 database with the dump script (ideally...) and so serialized strings there come more naturally than here.Comment #6
benjy commentedCommitted and pushed to 8.x
Comment #7
benjy commented