Problem/Motivation
We added bespoke API for checking whether media entity is for an image (confusingly that's called isMediaUrl on the frontend). However, the frontend will need additional information about the media entity:
Proposed resolution
Refactor isMediaUrl to more generic API that supplies frontend metadata about media entities. The API should provide frontend the following information:
- Whether the media entity contains an image
- The media entity default alt text for the media if it contains an image