Allow to alter opener_parameters before they are added to MediaLibrary State

Created on 14 January 2022, over 2 years ago
Updated 23 June 2023, over 1 year ago

Problem/Motivation

MediaLibraryState already has a lot of information about what triggered media library to open. But for the modules like groupmedia it is also important that the context about the group to which the opener belongs to is also added to the MediaLibraryState, so that the view that is used to display the existing media selection is also filtered according to the group permissions.

There is a related issue https://www.drupal.org/project/groupmedia/issues/3238469 πŸ› Groupmedia is not checking group permissions but site permissions when adding media entities via media library Fixed .

Proposed resolution

Allow to alter opener_parameters variable in MediaLibraryWidget before the state is populated.

Remaining tasks

Decide whether it should be alter hook or event and add a patch/MR.

User interface changes

No

API changes

No

Data model changes

No

Release notes snippet

MediaLibraryState can be altered for MediaLibraryWidget.

✨ Feature request
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated about 20 hours ago

Created by

πŸ‡©πŸ‡ͺGermany a.dmitriiev

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