Add helper function getSourceFileUri() to Media entities

Created on 3 February 2024, 7 months ago
Updated 4 February 2024, 7 months ago

Problem/Motivation

From a programmatic API standpoint, getting the File URI of the file a Media item is referencing requires digging down into the source to get the file name, then retrieving the URI from the file source, which can be confusing. A helper function allowing for retrieval of the URI of the file the Media item is referencing, would make it easier for developers to work with Media entities.

Proposed resolution

Add a helper function, MediaInterface::getSourceFileUri() which returns the URI of the file the Media entity is referencing/representing.

Merge request link

Remaining tasks

Write automated tests.
Release notes.

User interface changes

None.

API changes

New API function: MediaInterface::getSourceFileUri().

Data model changes

None.

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated less than a minute ago

Created by

πŸ‡¨πŸ‡¦Canada Jaypan

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

Comments & Activities

Production build 0.71.5 2024