Normally I am able to get an images URL by setting the display setting for that field to URL and then writing something similar to this in order to print the url
{{ content.field_image.0['#markup'] }}
However this is not possible in the display settings for a media entity, the only options are -
- Rendered entity
- Entity ID
- Thumbnail
- Label
So my question is how can I get the URL from the image, as I need to use the field as a background image so can't just render it out as normal?