Media has no collection route

Created on 4 January 2018, almost 7 years ago
Updated 3 April 2023, over 1 year ago

Problem/Motivation

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).

Proposed resolution

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.

📌 Task
Status

Fixed

Version

8.5 ⚰️

Component
Media 

Last updated about 16 hours ago

Created by

🇩🇪Germany chr.fritsch 🇩🇪🇪🇺🌍

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024