sulu_resolve_mediaΒΆ

Returns resolved media with needed properties for a given media object.

{% set media = sulu_resolve_media(contact.medias[0], 'de') %}
<img src="{{ media.thumbnails['100x100'] }}" title="{{ media.title }}" />

Arguments:

  • media: object - The media object.
  • locale: string - Locale to resolve metadata.
Returns: object - Object with all needed properties, like thumbnails,
title, description and url.