Allow the MediaLibraryUiBuilder service to use an alternative view display

Created on 7 May 2018, about 7 years ago
Updated 19 May 2023, almost 2 years ago

Problem/Motivation

Right now, the MediaLibraryUiBuilder service is hard-coded to use the media_library view. The display ID can be overridden with a views_display_id parameter in the MediaLibraryState object, but the view itself cannot be overridden.

Proposed resolution

Add a new protected method to the MediaLibraryUiBuilder service which takes the MediaLibraryState object and returns the ID of the view to use. It should normally just return the state object's view_id parameter, defaulting it to media_library if it's not specified, to preserve existing behavior.

Remaining tasks

Implement this change (should be only a few lines) and add automated test coverage.

User interface changes

None.

API changes

None.

Data model changes

None.

Feature request
Status

Needs work

Version

10.1

Component
Media 

Last updated about 3 hours ago

Created by

🇺🇸United States samuel.mortenson

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

Merge Requests

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