I jumped the gun and tagged 1.0 without thinking about ensuring the commerce_cart_clear config object got installed on existing sites.
The endpoint was added in #2974429: Add a clear Cart API to empty the items in batch..
We can use the commerce.config_updater service in a post_update to import rest.resource.commerce_cart_clear
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2996228-2.patch | 580 bytes | mglaman |
Comments
Comment #2
mglamanImport added. If the config exists, it does nothing.
Comment #4
mglaman