I was trying to build #2877383: Add action support to Media module → on top of #2670730: Provide a delete action for each content entity type → , when I realized that media has no collection route.
The collection route is needed for the cancel URL in the media delete action.
It is also useful for creating links to the list at Content > Media (/admin/content/media
).
Add a collection route to the media entity type.
After this patch, Url::fromRoute('entity.media.collection')->toString()
can be used to generate the URL of /admin/content/media
.
Fixed
8.5 ⚰️
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.