I have created a custom media bundle using the Media Entity module. Here is a screen grab of the media bundle:
I have created a Twig template media--image.twig.html
I am able to retrieve all of the field values via the content
variable in Twig but I'm having difficulty retrieving the field_image
URL.
Here is a snapshot of the output from {{ kint(content.field_image) }}
:
How do I extract the URL? I can see a target Id, so presumably I can load the entity in the preprocess function and pass through the variable but I would've expected the full target object to be available within the Twig template?