Updated: Comment #0
Problem/Motivation
Steps:
1) visit admin/structure/display-modes/form
- only User is listed
2) manually enter admin/structure/display-modes/form/add/node
- now you can add new form mode for Node
3) the same applies for view modes admin/structure/display-modes/view
Proposed resolution
Create a local action for admin/structure/display-modes/[form|view]/add
route that already works but not accesible from UI
Optinally we could get rid of links under each entity
Remaining tasks
create patch and write tests
User interface changes
New local action
API changes
no
Comment | File | Size | Author |
---|---|---|---|
#2 | form-mode-after.png | 11.18 KB | andypost |
#2 | form-mode-before.png | 8.78 KB | andypost |
#1 | 2199875-add-mode-1.patch | 1.78 KB | andypost |
Comments
Comment #1
andypostPatch with tests
Comment #2
andypostScreenshots:
before
after
Comment #3
tim.plunkettOh! These are still in entity_menu(), they must have just gotten missed during local action conversion.
I *knew* I'd written routes for them, and it didn't make sense why it wasn't showing up.
We should just leave the entity_menu() bits for #2177041: Remove all implementations of hook_menu.
Comment #4
alexpottDon't the default form modes need to exist too?
So if you add a form mode for content you and select it to be customisable can can not also customise the default.
Comment #5
alexpott@swentel took me through some of my confusion.
Patch works!
Committed ab2a911 and pushed to 8.x. Thanks!