{% extends "EzPublishCoreBundle::content_fields.html.twig" %}

{% block ezobjectrelation_field %}
{% spaceless %}
{% if field.value.destinationContentId %}
{{ render( controller( "ez_content:viewContent", {'contentId': field.value.destinationContentId, 'viewType': 'image_linked', "params": parameters|merge( attr ), 'noLayout': 1 } ) ) }}
{% endif %}
{% endspaceless %}
{% endblock %}