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.
Add a helper function, MediaInterface::getSourceFileUri()
which returns the URI of the file the Media entity is referencing/representing.
Write automated tests.
Release notes.
None.
New API function: MediaInterface::getSourceFileUri().
None.
Active
11.0 π₯
Last updated