Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
paragraph--oe-text-feature-media.html.twig 857 B
{#
/**
 * @file
 * Theme override to display the 'featured_media' type paragraph.
 *
 * @see ./modules/contrib/paragraphs/templates/paragraph.html.twig
 */
#}

{% if not paragraph.field_oe_link.isEmpty %}
  {# Add cache info from the Link field to the page. #}
  {% set bubble_cache = content.field_oe_link|render %}
{% endif %}

{{ pattern('featured_media', {
  'embedded_media': embedded_media,
  'image': image,
  'ratio': ratio,
  'text_position': text_position,
  'title': not paragraph.field_oe_title.isEmpty ? content.field_oe_title,
  'subtitle': not paragraph.field_oe_feature_media_title.isEmpty ? content.field_oe_feature_media_title,
  'caption': not paragraph.field_oe_plain_text_long.isEmpty ? content.field_oe_plain_text_long,
  'text': not paragraph.field_oe_text_long.isEmpty ? content.field_oe_text_long,
  'link': link|default([]),
}) }}