Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
1) We need to create the missing canonical route & menu link (just like nodes and others have).
Not every site will want that to be user accessible, but that can be controlled via the "view stores" permission.
2) We need to change the urls for the canonical/edit/delete routes so that they aren't under admin/.
"/admin/commerce/stores/{commerce_store}" becomes "store/{commerce_store}", etc.
This does not impact the admin listing / collection.
The same pattern is used in core for user, block_content entities:
* links = {
* "canonical" = "/user/{user}",
* "edit-form" = "/user/{user}/edit",
* "cancel-form" = "/user/{user}/cancel",
* "collection" = "/admin/people",
* },
* links = {
* "canonical" = "/block/{block_content}",
* "delete-form" = "/block/{block_content}/delete",
* "edit-form" = "/block/{block_content}",
* "collection" = "/admin/structure/block/block-content",
* },
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedCommitted in adf4b1de57475872334f967dbbbca78b5cb379b7.